Question: Employee Management System Create a menu based Java application with the following options. 1. Add an Employee 2. Display All 3. Exit If option 1
Employee Management System
Create a menu based Java application with
the following options.
1.
Add an Employee
2.
Display All
3.
Exit
If option 1 is selected, the application should gather details of the employee like
employee name, employee id, designation and salary and store it in a file.
If option 2 is selected, the
application
should display all the employee details.
If option 3 is selected the application should exit.
Sample Output:
Main Menu
1. Add an Employee
2. Display All
3. Exit
1
Enter Employee
ID: 120
Enter Employee
Name: Sudhir
Enter Employee
Age: 33
Enter Employee
Salary: 90000
Main Menu
1. Add an Employee
2. Display All
3. Exit
1
Enter Employee ID :130
Enter Employee Name :Selvan
Enter Employee Age :40
Enter Employee Salary :100000
Main Menu
1. Add an Employee
2. Display All
3. Exit
2
1
2
----
Report
-----
120 Sudhir 3
3 90000.0
130 Selvan 40 100000.0
----
End of Report
-----
Main Menu
1. Add an Employee
2. Display All
3. Exit.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
