Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write in C++ 1 CANA- EE x A- A- 2 AaCelle AaBbc ABC Emphasis Heading 1 Normal ABC Strong AaBbce Subtitle 9 Paragraph s (30)
write in C++
1 CANA- EE x A- A- 2 AaCelle AaBbc ABC Emphasis Heading 1 Normal ABC Strong AaBbce Subtitle 9 Paragraph s (30) 2. Design, develop, and test class Payroll with private member variables for an employee's hourly pay rate and number of hours worked Member functions include ctor set functions for hours and pay Rate, and accessor (get O functions to return the hours and pay Rate, and an accessor that computes and returns the gross pay. Test with a driver program that uses an array of employees with a minimum number of 7 array components prompts for the pay rate and number of hours worked by each employee, and outputs the weekly gross pay for ompts for the paymple output is shown belonction should not accept Data validation the shows member function should not accept an input value less than zero or greater than 60 /Sample output: Enter hours worked and pay rate for 7 ceployees: Employee 81 pay rate: $18.64 Employee 11 hours worked: 66 Hours must be between and 60 :55 Employee 22 pay rate: $20.0 Employee #2 hours worked: -44 Hours must be between 0 and 60:44 Employee 83 pay rate: $19.12 Employee 3 hours worked: 40 Employee 4 pay rate: $35.75 Employee 24 hours worked: 43.6 Employee 5 pay rate: $29.92 Employee as hours worked: 40.8 Employee 16 pay rate: $18.98 Employee 6 hours worked : 45 Employee 7 pay rate: $21.16 Employee 7 hours worked : 44 Total pay: Employee 61: $1025.20 Employee #2: $380.00 Employee 3 792. Employee 14: $1558.70 Employee at $1220.74 Employee #6: 854,10 Employee #715931.04 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started