Hi,
I'm new to Java and I need help with the following if someone can help me:
Write a program named Personnel that maintains salary information for the employees of a company. The program should display a text based menu, giving the user a choice of selecting a command.
The commands that the program should support are: n (create new employee by pressing the n button), l (list all employees), p (compute all paychecks), r (raise wages), and q (exit the
menu).
The n command creates a new employee and prompts the user for the name of the employee, and whether the employee is an hourly paid, or has an annual salary. If the user selects to create
an hourly paid employee, he/should be prompted for the hourly rate, otherwise he/should be prompted for the annual salary of the employee.
The p command calculates and displays on the screen the amount that it should be paid to each individual employee who already exists in the system. Assuming that hourly paid employees have been created, the p command should ask the user for the number of hours that each individual hourly paid employee has worked for.
The r command should prompt the user for a percentage rate. All salaries (annual and hourly) should be increased by this rate.
Additionally, the user should be able to display all the employees with an annual salary in ascending order, according to their salaries. I.e. the employee with the smallest salary should
be displayed first, the employee with the second smallest salary should be displayed next, etc
.
The program should implement the classes Employee (abstract class), HourlyEmployee, SalariedEmployee with appropriate methods.
Implement a test class which creates instances of all the implemented classes and tests their functionality.
---------------------
I've done a text based menu displaying the above options, but what do I put in the switch case for the menu for the different cases?
case 'N' : ???????