Question: PART 1: Write a program in C++ that permits users to enter the following information about your company's five employees and writes the following information

 PART 1: Write a program in C++ that permits users to

PART 1: Write a program in C++ that permits users to enter the following information about your company's five employees and writes the following information to the file (data.txt). Employee ID. Name Years with company Hourly Wages All information must be displayed in a well formatted manner, so you can put in relevant manipulators for this purpose. Run your program, put in employee information (for 5 employees), and verify if you have a txt file as required. PART 2: At this point you must have a txt file with information of 5 employees. Go back to your C++ program (from part 1), put the entire existing program from part 1 within block comments / Now write a new program for part 2 (in that same C++ file) as per instructions given below. Write a C++ program that reads this file data.txt, one line at a time, asks for the number of hours worked by each employee per month and calculates their total pay for that month. So for each of the employee records that stream in, your program must ask user: Enter hours worked by (name of employee): When user puts in the answer, program must calculate the total salary and display on the computer screen as " The salary of (name) is $ (salary)

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!