Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C++ program that will read 10 records into an array from a data file. Ea

ID: 3538908 • Letter: W

Question

Write a C++ program that will read 10 records into an array from a data file. Each

record should contain an employee ID, hours worked and pay rate. You should

calculate a total pay and then write the record to an output file. The Record

written should consist of Employee ID, hours worked, pay rate and total pay.


Description DataType Variables

Employee IDs of INT employees_jd

Hours Worked of DOUBLE hrworked_jd

Pay Rate of DOUBLE payrate_jd

Total Pay of Double total_pay

Excluding the main function, your program should have three additional functions that will get

the employee id, hours worked, and payrate; another to calculate the total pay; and another

to write your output to the output file.

Total pay should be calculated by multiplying the hours worked by payrate plus

10% of total pay for every five (5) hours over forty (40). (ie a person working 50

hours with a total pay of $100 would have ((50-40)/5)*(100*.1) added to total pay.


Note: _jd represents the initials of the programmer. Your function names should

be named by replacing the initials jd with your first and last initials


Using the instructions in Program 12, write the same program. But this time create a file

(datafile) that has you full name, Course name and Date on the first three lines. Write the

program to open the output file in append mode and write your output to this file.

When the execution of your C++ correctly executes, you output file should contain your name,

course name and date followed by the 10 employee records including their total pay.

Explanation / Answer

Hey i can do this assignment of yours. actually i don't need chegg points so if you could just add me on skpye we can talk about it :)

my id is adiboi-10 on skype

and my gmail id is adil.sarwar921@gmail.com

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote