Your input file WorkLoad.txt contains the following information for exactly one employee: Jane Doe 23.50 45 _______________________________________ Line One is the employee’s name Line Two is the Rate of Pay followed by the number of hours worked C ++ program is to read in the data contained in the file and 1. If the employee worked more than 38 hours they are to receive time and a half for all the hours worked over 38 2. Calculate the weekly take home pay of that employee 3. Print your results on the screen in the following format: [Employee] worked [hours] at a rate of pay of [Rate of Pay]. Due to the number of hours worked the employee [did/did not] qualify for time and a half pay. The weekly salary for this employee is [salary]. This output is also to be written to an output file Salary.txt Note: Employee, hours worked, and Rate of Pay are read in from the input file. Whether or not the employee qualified for time and a half and the computed salary are based upon ther results of an if statement. Submit the following files: Copy of input file Your program with the screen output attached Copy of the output file In the future this program may be expanded to create the salary for multiple employees.
Your input file WorkLoad.txt contains the following information for exactly one employee:
Jane Doe
23.50 45
_______________________________________
Line One is the employee’s name
Line Two is the Rate of Pay followed by the number of hours worked
C ++ program is to read in the data contained in the file and
1. If the employee worked more than 38 hours they are to receive time and a half for all the hours worked over 38
2. Calculate the weekly take home pay of that employee
3. Print your results on the screen in the following format:
[Employee] worked [hours] at a rate of pay of [Rate of Pay]. Due to the number of hours worked the employee [did/did not] qualify for time and a half pay. The weekly salary for this employee is [salary].
This output is also to be written to an output file Salary.txt
Note:
Employee, hours worked, and Rate of Pay are read in from the input file.
Whether or not the employee qualified for time and a half and the computed salary are based upon ther results of an if statement.
Submit the following files:
Copy of input file
Your program with the screen output attached
Copy of the output file
In the future this program may be expanded to create the salary for multiple employees.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images