Lab Quiz 5 - Inheritance
Due at the end of lab period.
Submit your Hourly.java to a folder called RU11 in your directory on neelix.
You will complete the Hourly employee class, which is inherited from the Employee class.
Download these 4 files : Employee.java, Hourly.java, lq5.java, and in.txt.
Use this class diagram to help you:
- name : String
| - hoursworked : int
- payrate : double
| + pay
Output for the input file given :
Name: Martha Stewart Id:
Hours: 24 Rate: 376.5 Pay: $9,036.00
Name: Alan Greenspan Id:
Hours: 56 Rate: 6.45 Pay: $412.80
Name: Ronald McDonald Id:
Hours: 38 Rate: 15.9 Pay: $604.20
Name: Halle Berry Id:
Hours: 40 Rate: 876.8 Pay: $35,072.00
Name: James Bond Id:
Hours: 42 Rate: 92.5 Pay: $3,977.50
(Note: text in purple is output by the driver program. Black text is returned by toString().)