Asked by kim

Write a program the 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: Compute Total() and access methods (SetHours(), GetHours(), SetRate(), GetRate(), Set Total(), and Get Total()) for each of the attributes

Answers

Answered by della
Write a program the 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: Compute Total() and access methods (SetHours(), GetHours(), SetRate(), GetRate(), Set Total(), and Get Total()) for each of the attributes
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions