Objective Develop skills to design, code, and implement classes that follow design criteria such as reusable code, effective inheritance, coupling and cohesion. Problem An organization has employees...

1 answer below »


Objective



Develop skills to design, code, and implement classes that follow design criteria such as reusable code, effective inheritance, coupling and cohesion.



Problem


An organization has employees of two types: Salaried employees and contract employees. Each employee has a name, mailing address, email, and pay. Pay of salaried employees is specified at the time of hire as amount per annum to be paid as 26 equal payments. The pay of contract employees is specified each time when the contract is offered and is paid in three equal payments.


Develop a Java application that can prepare payment statement for all employees.


The output of the application should be


Employees Payment Statement


Date: mm-dd-yyyy


Name Email Payment amount


………….. ………. $dddd.dd


………….. ………. $dddd.dd


………….. ………. $dddd.dd





Requirements


1. UML class diagram for each class and a class hierarchy diagram


2. Code to implement

employee

class as an abstract class with abstract payment method.


3. Code to implement

salaried employee

as a subclass of employee with payment method defined as described in the problem statement


4. Code to implement

contract employee

as a subclass of employee with payment method defined as described in the problem statement.


5. Java application that creates an ArrayList of employee objects, creates at least two objects of salaried employee type, creates at least two objects of contract employee type, and prints a payment statement properly formatted as outlined in the problem statement.



Evaluation


Submitted work will be assessed for the following:


1. UML diagrams ------------ 15 points


2. Application architecture 15 points


3. Class definitions ---------- 30 points


4. Application and Output 30 points


5. Overall quality ------------ 10 points

Answered Same DayJun 02, 2021

Answer To: Objective Develop skills to design, code, and implement classes that follow design criteria such as...

Rushendra answered on Jun 03 2021
151 Votes
Employee/.classpath

    
        
            
        
    
    
    
Employee/.project

     Employee
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            
        
    

    
         org.eclipse.jdt.core.javanature
    
Employee/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
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.enumIdentifier=error
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
Employee/bin/employee/ContractEmployee.class
package employee;
public synchronized class ContractEmployee extends Employee {
public void ContractEmployee(String, String, int);
public double salary();
}
Employee/bin/employee/Driver.class
package employee;
public synchronized class Driver {
java.util.List employeeList;
public void Driver();
public static void main(String[]);
private void displayMenu();
}
Employee/bin/employee/Employee.class
package employee;
public abstract synchronized class Employee {
protected String name;
protected String mailAddress;
protected int pay;
public void Employee(String, String, int);
public String getName();
public 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