Question: Write a Java program which displays a menu to allow user the following functionality: 1. Load employees data - prompts user for the number of

Write a Java program which displays a menu to allow user the following functionality:

1. Load employees data - prompts user for the number of employees to be loaded and then prompts for each employee name, id (5 digit number), and annual salary

2. Add new employee - prompts user for an employee data, name, id, and annual salary

3. Display all employees - displays each employees data to the console, one employee per line

4. Retrieve specific employees data - prompts user for the employee id and displays the corresponding employees data: id, name, and salary

5. Retrieve employees with salaries based on range - prompts user for the lowest and highest salary and displays all employees with salaries in that range. Display each employee on separate line with all information - name, id, and salary

6. Exit

Design and implementation notes: o Each menu selection should be implemented as a separate method o Employees data should be saved in arrays, you can allocate for maximum 100 elements o After completion of each selection, program should display the menu again to allow user another selection until they select Exit

Make sure your Java program is using the recommended style such as: Javadoc comment up front with your name as author, date, and brief purpose of the program Comments for variables and blocks of code to describe major functionality Meaningful variable names and prompts Identifiers are written in upper CamelCase Class name starts with upper case letter and variables in lower case letter Constants are written in All Capitals Use proper spacing and empty lines to make code human readable

Capture execution: You should capture and label screen capture associated with compiling your code, and running a test case. There should be a screenshot for the execution of each menu selection.

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!