Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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: $1023Step 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