c++ problem use basic file handling Modify Assignment #8 so that the input will come from a data file named "input-XXXX.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

c++ problem use basic file handling Modify Assignment #8 so that the input will come from a data file named "input-XXXX.

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply