(Data processing) a. Declare a single structure data type suitable for an employee structure of the type shown in the following chart: Number 3462 Name Jones Rate 14.62 Hours 40 38 6793 Robbins 15.83 6985 Smith 15.22 45 7834 Swain 16.89 40 Timmins 8867 9002 16.43 14.75 35 Williams 42 b. Using the data type declared in Exercise 4a, 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.
(Data processing) a. Declare a single structure data type suitable for an employee structure of the type shown in the following chart: Number 3462 Name Jones Rate 14.62 Hours 40 38 6793 Robbins 15.83 6985 Smith 15.22 45 7834 Swain 16.89 40 Timmins 8867 9002 16.43 14.75 35 Williams 42 b. Using the data type declared in Exercise 4a, 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.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 7E
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 6 images
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr