Project Before attempting this project, be sure you have completed all of the reading assignments, non- graded exercises, discussions, and assignments to date. Write a Java program which displays a...

1 answer below »
project


Project Before attempting this project, be sure you have completed all of the reading assignments, non- graded exercises, discussions, and assignments to date. 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 employee’s data to the console, one employee per line 4. Retrieve specific employee’s data - prompts user for the employee id and displays the corresponding employee’s 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 Submission requirements Deliverables include Java program (.java) and a single Word (or PDF) document. The Java and Word/PDF files should be named appropriately for the assignment (as indicated in the SubmissionRequirements document. The word (or PDF) document should include screen captures showing the successful compiling and running of each of the test cases. Each screen capture should be properly labeled clearly indicated what the screen capture represents. Submit your files to Assignment 6 submission area no later than the due date listed in your online classroom. Grading Rubric: The following grading rubric will be used to determine your grade: Attribute Level (10-6 points) Level (6-2 points) Level 0 (0 - 2 points) Arrays Correct or almost correct prompts and captured input in arrays Mistakes in prompts and/or capture of input and/or arrays Missing or close to missing user input and/or use of arrays Methods Correct or almost correct use of methods Mistakes in implementation of methods Missing all or some methods Menu Correct or almost correct menu implementation Mistakes in menu implementation Missing or almost missing menu Load data functionality Correct or almost correct design and implementation Mistakes in design or implementation Missing or significantly incorrect design and/or implementation to provide the required functionality Add employee data functionality Correct or almost correct design and implementation Mistakes in design or implementation Missing or significantly incorrect design and/or implementation to provide the required functionality Display all data functionality Correct or almost correct design and implementation Mistakes in design or implementation Missing or significantly incorrect design and/or implementation to provide the required functionality Retrieve employee data Correct or almost correct design and implementation Mistakes in design or implementation Missing or significantly incorrect design and/or implementation to provide the required functionality Retrieve employees with salary in range functionality Correct or almost correct design and implementation Mistakes in design or implementation Missing or significantly incorrect design and/or implementation to provide the required functionality Screenshots Correct or almost correct test execution Mistakes or incomplete execution Missing or significantly incorrect execution Program documentation and style Correct or almost correct program comments, and identifiers Mistakes or incomplete documentation and/or style Missing or significantly incorrect documentation and/or style
Answered 1 days AfterMar 05, 2021

Answer To: Project Before attempting this project, be sure you have completed all of the reading assignments,...

Valupadasu answered on Mar 06 2021
141 Votes
EmployeeProj/.classpath

    
        
            
        
    
    
    
EmployeeProj/.project

     EmployeeProj
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            
        
    
    
         org.eclipse.jdt.core.javanature
    
EmployeeProj/.s
ettings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
EmployeeProj/bin/Employee.class
public synchronized class Employee {
private String name;
private int id;
private double salary;
public void Employee(String, int, double);
public String getName();
public void setName(String);
public int getId();
public void setId(int);
public double getSalary();
public String toString();
public void setSalary(double);
}
EmployeeProj/bin/EmployeeView.class
public synchronized class EmployeeView {
private static java.util.Scanner scan;
private static final int LOAD_EMPLOYEEES_DATA = 1;
private static final int ADD_NEW_EMPLOYEE = 2;
private static final int DISPLAY_ALL_EMPLOYEES = 3;
private static final int GET_EMPLOYEE_DATA = 4;
private static final int GET_EMPLOYEES_WITH_SAL_RANGE = 5;
private static final int EXIT = 6;
private static Employee[] employeeArr;
static void ();
public void EmployeeView();
public static void main(String[]);
private static int displayMenu();
private static void executeMenuItem(int);
public static void loadEmployeeData();
public static void loadSingleEmployee();
public static void displayAllEmployees();
public static void getEmployeeData();
public static void...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here