Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scenario: A company likes to have a simple system to keep track of all the employees. You must create an object-oriented solution. It must be

Scenario: A company likes to have a simple system to keep track of all the employees. You must create an object-oriented solution. It must be a menu-driven program for the user to use the system through the console. The following classes are needed for this object-oriented database.

You should make (create) a class called Employee that has the following stored properties: Employee -empID : Integer (Auto Generated) -empFirstName: String -empLastName: String -empAnnualSalary : Integer -empResidence: Residence ** Class Employee should have set/get properties, constructor and have following methods: toString() method that returns the above information as a String

You should make (create) a class called Residence which can be aggregated into the class Employee Residence -streetName: String -cityName: String -zipCode: String -province: String -country: String ** Class Residence should have set/get properties, constructor and following method: toString() method that returns the above information as a String. Summary of Operations System Menu: Add Employee Generate Payroll Find an Employee information Exit Overview: You may use array to store all your employees into one array of objects. If you use an Array, you may assume the user does not enter more than ten employees in total into the system. Add Employee: this menu should accept all the necessary parameters for Employee and create an instance from Employee class and store it into employee array. Since the ID is a primary key for this object-oriented database the employee ID must be auto generated, and user does not enter the ID.

Generate Payroll: this menu should print all the salary needs to pay for current month for each employee along with total payable to employees. Find an Employee Information: the user should view the relevant information of a particular employee using empID. Exit: exit the running menu (program)

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Programming questions