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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY