Question: C++ Language Program 3: Write a program that will ask for the hours an employee has worked and if he is full time, then calculate

 C++ Language Program 3: Write a program that will ask for C++ Language

Program 3: Write a program that will ask for the hours an employee has worked and if he is full time, then calculate the paystub based on the following rules: Here is the hourly rate of a part time employee: If the employee has worked less than 10 hours, then pay rate is $15 per hours. If the employee has worked less than 20 hours, then pay rate is $20 per hours. If the employee has worked less than 30 hours, then pay rate is $25 per hours. If the employee has worked less than 40 hours, then pay rate is $30 per hours. If the employee has worked more than 40 hours, then pay rate is $35 per hours. If the employee is full times, then the pay rate is 1.2 more than the part time employees. If the employee is part time, then no bonus will be awarded. If the employee is full time and has worked less than 20 hours, the bonus will be $100. If the employee is full time and has worked more than or equal to 20 hours, the bonus will be $200. The tax rate is 7% which will be deducted from the wage. Bonus: use enum Sample input: 100 (has worked 10 hours and is part time) Sample output: $139,5 Sample input: 30 1 (has worked 30 hours and is full time) Sample output: $1023

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!