Write a program that input from user, the number of hrs worked and hours pay rate for staff and output their total pay. The program must process an arbitrary number of staff the user will terminate input by entering 0 for hours worked and rate of pay. Employ a class called Worker as follows:
a) Attributes: Hours, Rate, Total
b) Methods: Evaluate Total and access methods (SetHours, GetHours, SetRate, SetTotal and GetTotal) for each of attributes.