Question: PROBLEM: Write a program that will let the user enter employee name, Rate per Hour and Number of Hours Worked. Then the program will
PROBLEM: Write a program that will let the user enter employee name, Rate per Hour and Number of Hours Worked. Then the program will automatically compute the Basic Pay, Over Time Pay, Gross Pay, Total Deduction and Net Pay. The number of hours per week is 40 so the excess of 40 should be computed as OT hrs. NOTE: Create two programs (one program using Scanner and one program using BufferedReader) Variables: empName, rateHour, numHrs Work, NumOThrs, basicPay, OThrsPay. grossPay,tax, philHealth, netPay, SSS=500, pagIbig =100,totDeduction; Formula: NumOThrs=numHrs Work - 40; OThrsPay = NumOThrs *rateHour * 1.25; basicPay rateHour * 40; grossPay =basicPay + OThrsPay; tax = grossPay* 0.1; philHealth gross Pay * 0.02; totDeduction tax + philHealth + SSS + pagibig; netPay =grossPay - totDeduction:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
