Objective Develop skills to design and implement Java applications using an object-oriented approach. Problem Develop an Employee Information system to manage information on employees. Each employee...

1 answer below »


Objective



Develop skills to design and implement Java applications using an object-oriented approach.



Problem


Develop an Employee Information system to manage information on employees.


Each employee has


1.1)A name that consists of first name and last name.


2.2)An address that consists of a number, street name, city, province, postal code, and country


3.3)An email address


4.4)A phone number


5.5)A status attribute that indicates whether the employee is salaried or contract


6.6)Date hired --- it is the date when the employee is hired. It cannot be changed once defined


Employee information system requires to print “Employees List” as:



First Name- Last Name -Email Address -Hire Date


……….. ……… ……….. MM-DD-YYYY


………… ………. ……….. MM-DD-YYYY


Test your application. Make sure that it works as required



Submission


Name your Apache NetBeans project as “LastnameFirstname-Assign1”. Save your tested program, copy UML class diagram to the folder, and zip the folder.


Upload the zipped folder to SLATE in the “Assignment1” folder in the Assignments tab by the due date.



Evaluation


Submitted work will be evaluated for


· UML class diagram ------------------ 20 points


· Employee class ----------------------- 30 points


· Employee information system --- 30 points


· Architecture, quality, and functionality 20 points

Answered Same DayMay 23, 2021

Answer To: Objective Develop skills to design and implement Java applications using an object-oriented...

Neha answered on May 24 2021
151 Votes
EIS/1.JPG
EIS/2.JPG
EIS/3.JPG
EIS/4.JPG
EIS/Address.java
EIS/Address.java
class Address{  
     private int number;
     private String streetName;
     private String city;
     private String province;
     private String posta
lCode;
     private String country;
    public Address(int number, String streetName, String city, String province, String postalCode, String country) {
        super();
        this.number = number;
        this.streetName = streetName;
        this.city = city;
        this.province = province;
        this.postalCode = postalCode;
        this.country = country;
    }

    public String toString() {
        return number + ", " + streetName + ", " + city + "\n" 
                + province + " " + postalCode + ", " + country;
    }

EIS/EIS.java
EIS/EIS.java
import java.util.Scanner;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
public class EIS {
    public static void printMenu() {
        System.out.println("1. Add employee");
        System.out.println("2. View employee");
        System.out.println("3. View all employees");
        System.out.println("4. Search employee");
        System.out.println("5. Remove employee");
        System.out.println("6. Quit");
        System.out.println("\nEnter your choice: ");
    }
    public static Address getAddress(Scanner scan) {
        System.out.println("Enter address: ");
        System.out.print("Number: ");
        int number = scan.nextInt();
        System.out.print("Street name: ");
        String stname = scan.next();
        System.out.print("City: ");
        String city = scan.next();
        System.out.print("Province: ");
        String prov = scan.next();
        System.out.print("Postal code: ");
        String code = scan.next();
        System.out.print("Country: ");
        String country = scan.next();
        return new Address(number, stname, city, prov, code, country);
    }
    public static void addEmployee(ArrayList emps, Scanner scan) {
        String fname, lname, email, phone;
        Status status = null;
        LocalDate hd;
        System.out.println("Enter firstname: ");
        fname = scan.next();
        System.out.println("Enter lastname: ");
        lname = scan.next();
        System.out.println("Enter email: ");
 ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here