View the step-by-step solution to:

In this exercise you create a program that displays an employees gross pay. write the IPO charts for a program that contains four value returning...

In this exercise you create a program that displays an employees gross pay.

A. write the IPO charts for a program that contains four value returning functions: Main ( ), getHoursWorked ( ) , getPayRate( ) , and calcGross ( ). The main ( ) funtion should call each function, then display the gross pay on the screen. When coding the calcGross ( ) function, you do not have to worry about overtime pay. You can assume that everyone works 40 or fewer hours per week. The hours worked and rate of pay may contain a decimal place.


B. Use the File menu to create a new Win32 console Application. Assign the names ch9AppE05 project and ch9AppE05 solution to the project and solution, respectively. Save the application in the Cpp5Chap09 folder. Add a new C++ source file to the project. Name the source file Ch9AppE05.

C. use the Ipo charts you created in step a to code the program. Display the gross pay with a dollar sign and two decimal places.

D. complete a desk check table for the program using the following two sets of data:

25.5 hours, $ 12 per hour
40 hours, $ 11.55 per hour.

E. Save and then build the solution. Execute the program. Use the data from step to test the program. When the program is working correctly, use the file menu to close the solution details

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question