Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started