Question: CSCI 1 3 0 2 Assignment 4 Due: Wednesday, July 3 Requirements Design Employee, Manager, Worker Classes that relate through inheritance: Design a class named

CSCI 1302 Assignment 4
Due: Wednesday, July 3
Requirements
Design Employee, Manager, Worker Classes that relate through inheritance:
Design a class named Employee. The class should keep the following information in fields: marks]
Employee name
Employee number of 9 digits long
Write one or more constructors and the appropriate accessor and mutator methods for the class.
Write a class named Manager that extends the Employee class. The Manager class should have fields to hold the following information: [30 marks]
Yearly salary
Write one or more constructors and the appropriate accessor and mutator methods for the class.
A method getMonthlyPay() must be provided.
Write a class named Worker that extends the Employee class. The Worker class should have fields to hold the following information: [30 marks]
Hourly pay rate
Hours worked in the current week
Write one or more constructors and the appropriate accessor and mutator methods for the class.
A method getWeeklyPay() must be provided.
Write a driver class EmployeeDemo.java that uses Manager and Worker objects to demonstrate Employee, Manager and Worker classes work together properly. Make sure all fields and methods in Employee, Manager, and Worker are tested. [20 marks]
Demonstrate polymorphism in EmployeeDemo.java. [10 marks bonus]
Please include your name in header comments, and follow proper programming styles such as naming, indentations, etc [5 marks]
Please create and submit screenshots of program outputs when executed. [10 marks]
Please write a README text file to discuss any issues of your program and what you have learned. [5 marks]
Submission
Your code (Employee.java, Manager.java, Worker.java, EmployeeDemo.java)[85 marks]
Screenshots of the outputs from your code at execution [10 marks]
README marks]
 CSCI 1302 Assignment 4 Due: Wednesday, July 3 Requirements Design Employee,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!