Write a program that inputs (from the user) the number of hours worked and hourly pay rate

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 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: