Question: c++ Your program must be setup to open Person.txt as the file. For testing you can add your own Person.txt file into visual studios as

 c++ Your program must be setup to open "Person.txt" as the
c++

Your program must be setup to open "Person.txt" as the file. For testing you can add your own Person.txt file into visual studios as a resource. The file your program will have to take in will be formatted like so: The first 2 numbers are the min and max that the Person can work. Anything under the min and the employee is docked salary. Anything above and the employee must be paid overtime. These number may vary but min will always be less than the max. There will then be 5 lines with different amounts of numbers (indicating the person's work times per line): The first number will tell how many numbers will follow (since some weeks do not have 5 work days and can have holidays. Example file 1: 35 45 588798 4 10 8 2 13 6 4 8 10 9 81 5 8 10 10 10 10 3 878 Example file 2: 20 20 38 84 288 3888 58 8 442 2.45 You will read the first number in using the stream extraction operator. Based on that number you can read in the rest of the numbers (again using the stream extraction operator). What you will be trying to identify is whether the Person whose data you read in worked more than their max hours per week - in which case you will indicate this by outputting "OVERTIME' and however much over the max the person worked for that week. Or if the Person worked less than their min you should output "DOCK" and Indicate how many hours below min they worked

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!