The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 407 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
The payroll manager at Gerston Blankets wants a program that calculates and displays the gross pay for each of the company’s employees. It also should calculate and display the total gross pay. The payroll manager will enter the number of hours the employee worked and his or her pay rate. Employees working more than 40 hours should receive time and one-half for the hours over 40. Use a void function to determine an employee’s gross pay. Use a value-returning function to accumulate the total gross pay. The program should display the total gross pay only after the payroll manager has finished entering the data for all the employees. Use a sentinel value to end the program.
a. Create IPO charts for the problem, and then desk-check the algorithm using the following four sets of hours worked and pay rates: 35, $10.50; 43, $15; 32, $9.75; and 20, $6.45.
b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 10-35. Then, code the algorithm into a program.
c. Desk-check the program using the same data used to desk-check the algorithm.
d. If necessary, create a new project named Intermediate19 Project. Enter your C++ instructions into a source fi le named Intermediate19.cpp. Also enter appropriate comments and any additional instructions required by the compiler.
e. Save and then run the program. Test the program using the same data used to desk-check the program.



Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll