ITEC 120 Lab Quiz 5- Wednesday, April 28

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:

Employee

- name : String
- id : int

+ toString()

Hourly
- hoursworked : int
- payrate : double
+ pay : double
+ toString()

Output for the input file given :

Name: Martha Stewart     Id: 123456789
Hours: 24     Rate: 376.5    Pay: $9,036.00

Name: Alan Greenspan     Id: 333454567
Hours: 56     Rate: 6.45     Pay: $412.80

Name: Ronald McDonald     Id: 567843947
Hours: 38     Rate: 15.9     Pay: $604.20

Name: Halle Berry     Id: 554332321
Hours: 40     Rate: 876.8    Pay: $35,072.00

Name: James Bond     Id: 554788659
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().)