Problem

(Salary Calculator) Develop a C+ + program that uses a while statement to determine the gr...

(Salary Calculator) Develop a C+ + program that uses a while statement to determine the gross pay for each of several employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee’s gross pay.

Enter hours worked (–1 to end): 39Enter hourly rate of the employee ($00.00): 10.00Salary is $390.00Enter hours worked (–1 to end): 40Enter hourly rate of the employee ($00.00): 10.00Salary is $400.00Enter hours worked (–1 to end): 41Enter hourly rate of the employee ($00.00): 10.00Salary is $415.00Enter hours worked (–1 to end): –1

a) Read the problem statement.


b) Formulate the algorithm using pseudocode and top-down, stepwise refinement.


c) Write a C++ program.


d) Test, debug and execute the C++ program.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT