Question: Java assignment (please commit on the name of classes ,attributes and method ...dont rename or changed it and write it like a snapshot i will

Java assignment (please commit on the name of classes ,attributes and method ...dont rename or changed it and write it like a snapshot i will lose mark if it changed and focus on the super class it abstract ..please solve my question )
Java assignment (please commit on the name of classes ,attributes and method
...dont rename or changed it and write it like a snapshot i
will lose mark if it changed and focus on the super class
it abstract ..please solve my question ) 1. Write Java classes Employee,
CommissionEmployee, HourlyEmployee, and Product based on the following class diagrams: Employee rame.
String SSNint salary: double - MatSalary: double jobite String constructor setters and
better .toStrict String + calculateSalary vold HourlyEmployee over TimeHours: double - Constructors
setters and getters .toString(): String calculateSalary: vold Commission Employee productList Product constructor
- setters and better toStrin String calculate Salaryt void - adatoList Product)
vold Product - productName: String - quantity: int price: double + constructors
setters and getters + toString(): String 2. The Testing class will have
the following Menu: A. Create an ArrayList of type Employee AllEmployees. B.
Print the following menu to give the user optionality: Choose 1 to
insert a new employee to the company. Choose 2 to add a
new product for a Commission Employee. Choose 3 to add the overtime
hours for an Hourly Employee. Choose 4 to remove an employee from
the company. Choose 5 to sort the employees in the company based

1. Write Java classes Employee, CommissionEmployee, HourlyEmployee, and Product based on the following class diagrams: Employee rame. String SSNint salary: double - MatSalary: double jobite String constructor setters and better .toStrict String + calculateSalary vold HourlyEmployee over TimeHours: double - Constructors setters and getters .toString(): String calculateSalary: vold Commission Employee productList Product constructor - setters and better toStrin String calculate Salaryt void - adatoList Product) vold Product - productName: String - quantity: int price: double + constructors setters and getters + toString(): String 2. The Testing class will have the following Menu: A. Create an ArrayList of type Employee AllEmployees. B. Print the following menu to give the user optionality: Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. C. When the user chooses I then the information of the new employee will be needed only the first name, the family name. If the job description / S (salesman) then the type of employee commission or if the job description n'N for the Network Administrator, d/D for the Developer, or q/Q for the Quality Assurance then the type of employee hourly but the SSN will be incremented automatically. D. When the user chooses 2 then the user has to enter the SSN of the commission employee and the overtime hours. 620 Job Type Flat Salary Network Administrator 500 Developer 450 Quality Assurance Hourly Employees' salary can be calculated according to the following: Salary - flatSalary + ((1.5* overTimeHours) * 5) E. When the user chooses 3 then the user has to enter the SSN of the hourly employee and has to enter the product name t T for the Television with the quantity, 1 L for the Laptop with the quantity, and c/ C for the Cell Phone with the quantity. Product Name Price Television 250 Laptop 300 Cell Phone 150 Commission Employees' salary can be calculated according to the following: Salary - flatSalary + 20% of each product sold Where flat-salary-200jd. F. When the user chooses 4 then a specific employee will be removed from the company according to the following: The user has to enter the SSN of the employee to remove him/her if the entered SSN exists in the system then the employee will be removed, otherwise display the following message Sorry, the system doesn't have the specified SSN". G. When the user chooses 5 then the employees will be sorted according to their name. Sample Run: Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. OneDrive Please enter your choice: S T 1 0 Please enter your choice: Please enter the first name: Ahmed Please enter family name: Karem Please enter the job description for this employee S/s for Salesman, N for Network Administrator, D/d for Developer, or Q/q for Quality Assurance: S Commission Employees are: OneDrive Name SSN Salary Job Products So TI o Ahmed Karem 1 200.0 Salesman Hourly Employees are: Name SSN Salary Job Products Overtime Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. OneDrive Please enter your choice: 1 Sc TH 0 Please enter the first name: Please enter the first name: Rami Please enter family name: Nadeem Please enter the job description for this employee S/s for Salesman, Nn for Network Administrator, D d for Developer, or Q/4 for Quality Assurance: Network Administrator Commission Employees are: Name SSN Salary Job Products Ahmed Karem 1 200.0 Salesman Hourly Employees are: OneDri Name SSN Salary Job Overtime 1 Rami Nadeem 2 500.0 Network Administrator Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit Please enter your choice: Please enter the first name: Tamer OneDrive Please enter family name: Abdullah S T Please enter the job description for this employee S/s for Salesman, N for Network Please enter family name: Abdullah Please enter the job description for this employee S/s for Salesman, N for Network Administrator, D d for Developer, or Q/q for Quality Assurance: Developer Commission Employees are: Name SSN Salary Job Products Ahmed Karem 1 200.0 Salesman Hourly Employees are: Hourly Employees are: Name SSN Salary Job Overtime 1 Rami Nadeem 2 500.0 Network Administrator Tamer Abdullah 3 450 Developer 1 Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. Please enter your choice: 2 OneDriv Please enter the SSN for the Hourly employee: 2 Please enter the total overtime hours for this employee: Commission Employees are: Name SSN Salary Job Products Ahmed Karem 1 200.0 Salesman Hourly Employees are: Name SSN Salary Job Overtime Rami Nadeem 2 530.0 Network Administrator 1 | Tamer Abdullah 3 450 Developer OneDr Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. Please enter your choice: 3 Please enter the SSN for the Commission employee : 1 OneDriv Please enter the product name: C Please enter the quantity: Please enter your choice: 3 Please enter the SSN for the Commission employee : 1 Please enter the product name: Please enter the quantity: 2 Please enter the product name: Commission Employees are: Name SSN Salary Job Products Ahmed Karem 1 250.0 Salesman TV 1 OneD Hourly Employees are: Name SSN Salary Job Overtime Rami Nadeem 2 2 530.0 Network Administrator Tamer Abdullah 3 450 Developer Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. OneDriv Please enter your choice: 3 Please enter the SSN for the Commission employee : Please enter the product name: Please enter the quantity: 1 Please enter the product name: Commission Employees are: Name SSN Salary Job Products Ahmed Karem 1 310.0 Salesman TV, LP Hourly Employees are: OneDr Name SSN Salary Job Overtime Rami Nadeem 2 530.0 Network Administrator Tamer Abdullah 3 450 Developer Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company. Choose 5 to sort the employees in the company based on their names. Choose to exit. Please enter your choice: Please enter the SSN for the employee to remove: 3 Commission Employees are: OneDrive Name SSN Salary Job Products Se ---- ---- FO Ahmed Karem 1 310.0 Salesman TV, LP Name SSN Salary Job Products Ahmed Karem 1 310.0 Salesman TV, LP Hourly Employees are: Name Overtime 1 SSN Salary Job 2 530.0 Network Administrator Rami Nadeem Choose 1 to insert a new employee to the company. Choose 2 to add a new product for a Commission Employee. Choose 3 to add the overtime hours for an Hourly Employee. Choose 4 to remove an employee from the company Choose 5 to sort the employees in the company based on their names. Choose to exit. Please enter your choice: OneDrive SC TI O Sorted employees based on their name are: Name SSN Salary Job 1 - Ahmed Karem 1 310.0 Salesman Rami Nadeem 2 530.0 Network Administrator Good Luck ^_^ One

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!