c++ problem use basic file handling
Modify Assignment #8 so that the input will come from a datafile named "input-XXXX.txt" (whereXXXX is your last name). The format will have an employee name onone line and the hours and rateon the second line. For example (no blank lines in inputfile):Mickey Mouse20.5 13.50Donald Duck5 12.75In addition to sending the output to the screen, the program willsend the output to a data file named"output-XXXX.txt" (where XXXX is your last name). For eachemployee, the data file should containtheir name, hourly rate, number of hours, as well as all of the payinformation (regular, double, triple,total) that was computed before.
for help I am providing assignment 8
PROBLEM: Wally's Weekend Warriors is a local company thatperforms odd jobs and repairs but they only work on weekends. Wallyhas hired you to do the payroll for his employees. He pays hisemployees based on how many hours they work during a weekend.
Your program should ask for the user's name, hourly rate, andhours worked. The program should print out a report detailing howmuch of each type of pay (regular, double, triple), plus the totalpay. For types of pay that don't apply, no lines should be printed.The data should align properly. Examples covered in this coursewill demonstrate the proper format.
c++ problem use basic file handling Modify Assignment #8 so that the input will come from a data file named "input-XXXX.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am