(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.
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.