Currently, XYZ Company decided to have a computer program that will automate the
computation and display the salary (net income) of their employees every payday. To
compute the salary of an employee, the company requires the following input data
such as: rate per hour, number of hours per day, number of days per week, and
number of weeks per month. In addition, the company also requires the obligatory
deduction of each employee which allocated for SSS contribution, Philhealth
contribution, Tax contribution, and Pagibig contribution. For pagibig contribution,
the deduction is fixed to P100.00 and the rest of each deduction value are coming
from the data entry or inputs of the user. In order compute the salary of the employee,
the company provide a certain formula such as:
(Pseudocoding and Flowcharting)
Start
Declare variables ratePerHour,hoursPerDay,daysPerWeek,
weeksPerMonth,PagibigContribution,SSS,PhilhealthTax
Read ratePerHour
Read hoursPerDay
Read daysPerWeek
Read weeksPerMonth
Read SSS
Read PhilhealthTax
Set PagibigContribution = 100
Set GrossIncome = ratePerHour*hoursPerDay*daysPerWeek*weeksPerMonth
Set TotalDeduction = SSS+PhilhealthTax+PagibigContribution
Set NetIncome= GrossIncome-TotalDeduction
Display NetIncome
Stop
Comments
Leave a comment