Question: Write a program to generate an employee pay report. The program should read all data from an input file and write out all the results
- Write a program to generate an employee pay report. The program should read all data from an input file and write out all the results to an output file. DO NOT ASK THE USER FOR ANY INPUT!!!
You must do the following as part of the assignment:
- Use Git version control on the program throughout development.
- Demonstrate that you can use some of the debugging features of Visual Studio (details below).
- Properly commenting the program using the commenting style defined in the commenting document on Blackboard.
- Use .h/.cpp files to store function prototypes and function definitions.
- Read and write ALL data to/from files. The program should work no matter how many records are in the file. The output should be in report format (see below for sample output).
- Git Version Control
- The project directory you submit must be under Git version control. You should periodically execute commits to save your progress. You must execute at least three commits for this assignment during development. The commits should be spaced out evenly. Do not wait until the end of your development to do all the commits.
Console Application
Create a C++ console application. It should contain at least the following files:
- A .cpp file for the main function.
- A .h file for the pay function prototypes.
- A .cpp file for the pay function definitions.
Main Function Specifications
The main function should read and write data using files (not the keyboard). You should use the functions that you write to do all calculations. It needs to be able to read all data from the input file no matter how many records are there. It should not be necessary to recompile the program for it to work with a different number of records from the input file. All output data should be written to an output file (not the screen).
Functions
Write the following functions as part of your program. Remember to properly create them using .h/.cpp files.
Input Data File Format FirstName- Adam LastName- Zeb payRate- $20.50 Hours- 35

Functions Write the following functions as part of your program. Remember to properly create them using .h/.cpp files. Function Specifications Signature Description double GrossPay( double hours, double rate) This function should return the gross pay. double TaxPct(double grossPay) This function should return the following: Less than 200 .1 Greater than or equal to 200 and less than 500 .15 Otherwise .20 double FinalPay(double grossPay, double taxPct) This function should return the final pay with taxes deducted from it. Use the taxPct to calculate the tax amount that should be deducted. Functions Write the following functions as part of your program. Remember to properly create them using .h/.cpp files. Function Specifications Signature Description double GrossPay( double hours, double rate) This function should return the gross pay. double TaxPct(double grossPay) This function should return the following: Less than 200 .1 Greater than or equal to 200 and less than 500 .15 Otherwise .20 double FinalPay(double grossPay, double taxPct) This function should return the final pay with taxes deducted from it. Use the taxPct to calculate the tax amount that should be deducted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
