Write a program using Inheritance that will compute for the Daily Wage of an
employee.
The Parent class is the DailyWage. The child classes are the RegularPay and
OTPay. The Runner class is the RunDailyWage.
The regular hourly rate of the employee is P100. If the employee’s Total hours
work exceeds 8 hours, there will be an additional 50% increase in the
employee’s OTRate.
The user will enter the employee’s name and the employee’s total hours
work. The acceptable working hours is between 1 to 24 hours only. There
should not be any invalid entries. Use the appropriate exceptions.
The program should display the regular pay, OT pay and the Daily Wage.