Question: Program 6 . c + + program. please be Pacific with instructions. include a data dictionary. Using a structure, creating three structure variables; write a

Program 6. 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 (30) employees. (Ten for each structured variable.) Sort the list of employees by the employee ID in ascending order and display their respective information.
\table[[Description,DataType,Members],[Employee IDs,of INT employees_jd],[Hours Worked,of DOUBLE,hrworked_jd],[Pay Rate,of DOUBLE],[Total Pay,of Double,total_pay_jd],[Structure name,payroll,],[,,Array Size],[administrative,structure variable,10],[office,structure variable,10],[field,structure variable,10]]
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 (40)hours, total pay is calculated by an adding 10% of base pay for every five (5) hours over forty (40) to base pay. (ie a person working 50 hours with a total pay of $100 would have ((hours-40)/5).1)+ 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
\table[[,Read Input File,Calculate Pay,Sort Data,Output Results],[Name of function,get jd,calc_jd,sort_jd,prt jd],[Properties of function,Called from main,Called from main,Called from main,Called from main],[Definition of Function,\table[[Should pass hours],[worked and pay rate]],\table[[Should pass hours],[worked and pay],[rate and calculated],[total pay]],\table[[Sort data by student],[ID using the bubble],[or selection sort;],[passing all variables]],\table[[Should pass],[employee id, hours],[worked, pay rate],[and total pay. Then],[print the data.]]]]
Program 6 . c + + program. please be Pacific with

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!