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
- What do the phenomena of overshadowing, the CS preexposure effect, and relative validity of cues have in common? Give an example of each that illustrates this
- I am having trouble with how to approach this question and how to answer parts "A" through "G"
- what is BYD's current product flow process? what are the strengths and limitations of this product flow process?