Question: Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The
Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The program should process an arbitrary number of employees; the user will terminate input by entering 0 for hours worked and pay rate. Use a class called Worker with
● Attributes: Hours, Rate, Total
● Methods: ComputeTotal() and access methods (SetHours(), GetHours(), SetRate(), GetRate(), SetTotal(), and GetTotal()) for each of the attributes
Step by Step Solution
3.38 Rating (160 Votes )
There are 3 Steps involved in it
include include using namespace std cl... View full answer
Get step-by-step solutions from verified subject matter experts
