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

We don't do your homework for you. Make an effort and post the code here along with the errors you are experiencing. If it seems to us that you are making an honest effort to do the work, we will help you. If not, then you are on your own... :-(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.