I need help creating a C++ Code.  I need help Designing a PayRoll class that has data members for an employee’s hourly pay rate and the number of hours worked. Write a program with an array of seven PayRoll objects. The program should read the number of hours each employee worked and their hourly pay rate from a file and call class functions to store this information in the appropriate objects. I have a file named Data 1.It should then call a class function, once for each object, to return the employee’s gross pay, so this information can be displayed. I have attached the data that I was using. 40.0 10.00 38.5 9.50 16.0 7.50 22.5 9.50 40.0 8.00 38.0 8.00 40.0 9.00

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 28SA
icon
Related questions
Question

I need help creating a C++ Code.  I need help Designing a PayRoll class that has data members for an employee’s hourly pay rate and the number of hours worked. Write a program with an array of seven PayRoll objects. The program should read the number of hours each employee worked and their hourly pay rate from a file and call class functions to store this information in the appropriate objects. I have a file named Data 1.It should then call a class function, once for each object, to return the employee’s gross pay, so this information can be displayed. I have attached the data that I was using.
40.0 10.00

38.5 9.50

16.0 7.50

22.5 9.50

40.0 8.00

38.0 8.00

40.0 9.00

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Functions
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
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