posted by Anonymous .
The owner of the super supermarket would like to have a program that computers the monthly gross pay of their employees as well as the employee's net pay. The input for this program is an employee ID number, hourly rate of pay, and number of regular and overtime hours worked. Gross pay is the sum of the wages earned from regular hours and overtime hours; overtime is paid at 1.5 times the regular rate. Net pay is gross pay minus deductions. Assume that dudctions are taken for tax withholding (30 percent of gross pay) and parking ($10 per month). You will need the following variables:
EmployeeID (a String) HourlyRate (a Float) RegHours (a Float) Tax (a Float) Parking (a Float) OvertimeHours (a Float) NetPay (a Float) You will need the following formulas: GrossPay = RegularHours * HourlyRate + OvertimeHours * (HourlyRate * 1.5) NetPay * GrossPay - (GrossPay * Tax) - Parking
You will probably notice that posting the question for computer programming without showing any of your work will not get much response.
We will not write a complete program for you, because that will deprive you of the opportunity to learn.
Programming cannot be learned by reading alone. A student who has never programmed will not likely even pass the exam, much less be able to find a job in programming.
So be ready to programme if you are in computer science.
If you have already started, post your questions or problems.
employeeID = ""
hourlyRate = 0.0
regularHours = 0.0
grossPay = 0.0
tax = 0.3
parking = 10.0
overtimeHours = 0.0
netPay = 0.0
input employeeID, hourlyRate, regularHours, overtimeHours
grossPay = regularHours * hourlyRate + overtimeHours*hourlyRate*1.5
netPay = grossPay-(grossPay*tax)-parking
output grossPay, netPay