Question: Please write in c + + . Please create a personalized program and data dictionary. Please be pacific in detail. Thank you. Take your time.

Please write in c++. Please create a personalized program and data dictionary. Please be pacific in detail. Thank you. Take your time.
Referring to the structure assignment, create a class with four private member variables and five member functions; write a program that will read in records from an input file onto an array, calculate the total pay for ten (10) employees and storing the data into an array. The data is to then be written to an output file.
Description DataType Members
Employee IDs of INT employees_jd
Hours Worked of DOUBLE hrworked_jd
Pay Rate of DOUBLE payrate_jd
Total Pay of Double total_pay
Class name
Member Functions
payroll
calcPay
private
pass computed Total Pay and store into array.
getinfo
private
get information from datafile.
putinfo
private
output data to datafile.
results
public
array of ten (10), used to access private function getinfo and calcPay to retrieve data
from input file and calculate Total Pay.
results2
public
used to access private function putinfo to write the array of data to an output file.
Total pay should be calculated by multiplying the hours worked by pay rate plus 1.5 overtime rate for any hours worked over forty (40).
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.
Excluding the main function, your program should have five additional functions that will get the hours worked and payrate, calculate the total pay, and display your output.
Read Input
File
Calculate Average
Output Results
Name of function
getinfo_jd
calcPay_jd
putinfo_jd
Properties of function
Called from public member function results.
Called from public member function results.
Called from public member function results2.
Definition of Function
Data should be read from this file.
Should pass Total Pay back to results.
Data should be printed to this file.
Data file should be named data2_jd.txt

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!