Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions