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

Declare a single structure data type suitable for an employee structure of the t

ID: 3644743 • Letter: D

Question

Declare a single structure data type suitable for an employee structure of the type shown in the following chart

Number Name Rate Hours
3462 Jones 9.62 40
6793 Robbins 8.83 38
6985 Smith 8.22 45
7834 Swain 9.89 40
8867 Timmins 8.43 35
9002 Williams 9.75 42

Using the data type declared above Write a C++ program that interactively accepts the chart's data in an array of six structures. After the data has been entered, the program should create a payroll report listing each employee's name, number, and gross pay. Include the total gross pay of all employees at the end of the report.

Explanation / Answer

#include #include #define NUM_EMPLOYEE 10 using namespace std; int main(int argc, char *argv[]){ int Salary[NUM_EMPLOYEE], lCount=0,gCount=0,i=0; cout
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