Question: C++ (Using nested if else code only). Write a program that will calculate the net pay of an employee in a week. The net pay

C++ (Using nested if else code only). Write a program that will calculate the net pay of an employee in a week. The net pay is based on the hourly rate multiplied to the actual worked hours within a week, then subtracted by the taxes needed to be paid, which are the 6% social service tax, 14% federal tax, 5% state income tax. Note that the regular working hours in a week is 40 hours. Thus if the actual working hours has surpassed the 40 hours, the surplus hours will be considered overtime. The rate of overtime pay is 1.5 multiplied to hourly rate. Also note that overtime pay is not taxable. Furthermore, union dues amounting to 10 is also deducted from the pay of an employee Additionally, if an employee has more than 3 dependent, the employee pay has to be deducted 35 for the additional health insurance fee. Display the Overtime (if there is an overtime), the number of dependents, and the total net pay. Put an option where the user can retry the program again by Pressing Y/y to repeat the program. Explain each line for me to understand the flow of the program please...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!