Question: Write in C + . this program is going to have 4 files a CPP file heterophile a text file and a out file. Please

Write in C+. this program is going to have 4files a CPP file heterophile a text file and a out file. Please be pacific in creating a new code. Please add a data dictionary. Create a file (datafile) named[ csci194.out ] that has your full name, Course name and Date on the first three lines. Then write a program using the instructions below that will open the output file in append mode and write your output to this file.
Program Instructions:
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 append the data to the [ csci194.out ] output file. Again, before execution of your program, create the csci194.out file and include in it your name, course name and date each on a new line.
NOTE: You should submit four different files (.h,.out, .txt and .cpp)
The Record written should consist of Employee ID, hours worked, pay rate and total pay.
DescriptionDataType Variables
Employee IDsof INT employees_jd
Hours Workedof DOUBLEhrworked_jd
Pay Rateof DOUBLEpayrate_jd
Total Payof 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 based on a 40-hour work week. Calculate the employee pay giving time and one half (1.5) for overtime hours.
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.
Read Input FileCalculate Pay Output Results
Name of function get_jdcalc_jdprt_jd
Properties of function Called from main Called from main Called from main
Should pass
Should pass Should pass hoursemployee id, hours
Definition of Function employee id, hours worked and payrate worked and payrate
worked, payrate and calculate total pay and total pay and
write data
Once execution of your program has completed, the output file should contain your name, course name and date, each on a new line, followed by the 10 employee records including their total pay.
Ex:
John Doe
Software Design & Programming II
11/25/2020
Employee IDHours WorkedPay Rate Total Pay
............
............
...

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 Programming Questions!