4. (Data processing) a. Declare a single structure data type suitable for an employee structureof the type shown in the following chart:Number                  Name                   Rate               Hours3462                        Jones                     14.62                406793                         Robbins                 15.83                386985                        Smith                      15.22                  457834                        Swain                     16.89                 408867                         Timmins                 16.43                 359002                        Williams                14.75                     42b. Using the data type declared in Exercise 4a, write a C++ program that interactively acceptsthe chart’s data in an array of six structures. After the data has been entered, the programshould create a payroll report listing each employee’s name, number, and gross pay. Includethe 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 3E
icon
Related questions
Question

4. (Data processing) a. 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                     14.62                40
6793                         Robbins                 15.83                38
6985                        Smith                      15.22                  45
7834                        Swain                     16.89                 40
8867                         Timmins                 16.43                 35
9002                        Williams                14.75                     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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Algebraic Expression
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning