Question: Program 6 . c + + program. please be Pacific with instructions. include a data dictionary. Using a structure, creating three structure variables; write a
Program c program. please be Pacific with instructions. include a data dictionary.
Using a structure, creating three structure variables; write a program that will calculate the total pay for thirty employees. Ten for each structured variable. Sort the list of employees by the employee ID in ascending order and display their respective information.
tableDescriptionDataType,MembersEmployee IDs,of INT employeesjdHours Worked,of DOUBLE,hrworkedjdPay Rate,of DOUBLETotal Pay,of Double,totalpayjdStructure name,payroll,Array Sizeadministrativestructure variable,officestructure variable,fieldstructure variable,
Excluding the main function, your program should have four additional functions that will get the hours worked, and payrate, calculate the total pay, sort the data and display your output.
Base pay should be calculated by multiplying the regular hours worked by pay rate. If a person has worked over forty hours total pay is calculated by an adding of base pay for every five hours over forty to base pay. ie a person working hours with a total pay of $ would have hours base 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
tableRead Input File,Calculate Pay,Sort Data,Output ResultsName of function,get jdcalcjdsortjdprt jdProperties of function,Called from main,Called from main,Called from main,Called from mainDefinition of Function,tableShould pass hoursworked and pay ratetableShould pass hoursworked and payrate and calculatedtotal paytableSort data by studentID using the bubbleor selection sort;passing all variablestableShould passemployee id hoursworked pay rateand total pay. Thenprint the data.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
