Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago