Question

In: Computer Science

package design; public interface Employee { /*Employee is an Interface which contains multiple unimplemented methods.Again few...

package design;

public interface Employee {
   
   /*Employee is an Interface which contains multiple unimplemented methods.Again few methods
   has been declared in below. you need to brainstorm to add more methods to meet the business requirements.
   */
   //please read the following method and understand the business requirements of these following methods
   //and then implement these in a concrete class.
   
   //employeeId() will return employee id.
   public int employeeId();
   
   //employeeName() will return employee name
   public String employeeName();
   
   //assignDepartment() will assign employee to departments
    public void assignDepartment();
   
   //calculate employee salary
   public int calculateSalary();
   
   //employee benefit
   public void benefitLayout();

}

Solutions

Expert Solution


interface Employee {
     
   /*Employee is an Interface which contains multiple unimplemented methods.Again few methods
   has been declared in below. you need to brainstorm to add more methods to meet the business requirements.
   */
   //please read the following method and understand the business requirements of these following methods
   //and then implement these in a concrete class.
     
   //employeeId() will return employee id.
   public int employeeId();
   // will assigns the employee id
   public void setEmpoyeeId(int i);
     
   //sets employee name
   public void setEmployeeName(String name);
   //employeeName() will return employee name
   public String employeeName();
     
   //assignDepartment() will assign employee to departments
   public void assignDepartment();
     
   //calculate employee salary
   public int calculateSalary();
     
   //employee benefit
   public void benefitLayout();

}

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.

I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME


Related Solutions

You have a program which has an interface for a remote public interface Remote { public...
You have a program which has an interface for a remote public interface Remote { public void on(); public void off(); public void setChannel(int channel); public int getChannel(); public void sleep(int numMinutes); } You've been working with a Spanish firm that wants to use your program, but they have a different interface public interface controlRemoto { public void enciende(); public void apague(); public void cambiaCanal(int channel); public int qualCanal(); public void duerme(int numMinutes); } Create an adapter/wrapper around controlRemoto to...
package SOLUTION; import java.util.Collection; import java.util.Set; public interface MapInterface<K, V> {       /**    *...
package SOLUTION; import java.util.Collection; import java.util.Set; public interface MapInterface<K, V> {       /**    * If the given key is not already in the map, adds the    * key-value pair to the map. Otherwise, updates the old    * value of the existing key to the specified value.    * @param key the key    * @param value the value to be stored in the map with the key    * @return null if the key was not...
Your Objective : Design a bonus compesation package for an Employee Scenario: Gulf corporation is a...
Your Objective : Design a bonus compesation package for an Employee Scenario: Gulf corporation is a company engaged in the trade & manufacturing of medical devices. Lately, the company has been suffering from achieving its profitability objectives. The managing director has decided to introduce an incentivge program for each employee in order to improve business performance and attain profitability effectively. As Head of HR department, you have been assigned to complete this task. Your Parameters are as follows: 1. You...
Consider the following interface: public interface Car{ public String getMake(); public void setMake(); public void honk();...
Consider the following interface: public interface Car{ public String getMake(); public void setMake(); public void honk(); public void crash(); public void drive(); } public interface Boat{ public String getMake (); public void setMake (); public void blast_horn(); public void sink(); public void move(); } 1. Create a concrete FamilyCar class from the Car interface.
package design; public class FortuneEmployee { /** * FortuneEmployee class has a main methods where you...
package design; public class FortuneEmployee { /** * FortuneEmployee class has a main methods where you will be able to create Object from * EmployeeInfo class to use fields and attributes.Demonstrate as many methods as possible * to use with proper business work flow.Think as a Software Architect, Product Designer and * as a Software Developer.(employee.info.system) package is given as an outline,you need to elaborate * more to design an application that will meet for fortune 500 Employee Information *...
Class Employee (All IN JAVA) public class Employee {public String strName, strSalary; public Employee(){strName = "...
Class Employee (All IN JAVA) public class Employee {public String strName, strSalary; public Employee(){strName = " ";strSalary = "$0";} public Employee(String Name, String Salary){strName = Name;strSalary = Salary;} public void setName(String Name){strName = Name;} public void setSalary(String Salary){strSalary = Salary;}public String getName(){return strName;} public String getSalary(){return strSalary;} public String toString(){return(strName + " has a salary of " + strSalary); Create another method to return the name and salary nicely formatted as a string (hint – research the toString method). You...
ALL IN JAVA public class Employee {    public String strName, strSalary;       public Employee()...
ALL IN JAVA public class Employee {    public String strName, strSalary;       public Employee()    {        strName = " ";        strSalary = "$0";    }       public Employee(String Name, String Salary)    {        strName = Name;        strSalary = Salary;    }       public void setName(String Name)    {        strName = Name;    }       public void setSalary(String Salary)    {        strSalary = Salary;  ...
Q3) Design a class for saving data of employee, the class should have multiple constructors (constructor...
Q3) Design a class for saving data of employee, the class should have multiple constructors (constructor overloading) for initializing objects with different parameters. The employee class should have different functions for saving and updating bio-data, educational background, and current status like experience, Salary, position & travel history. The employee class should have a function which asks user what do he likes to see about employee (.i.e., Bio-data, current status....) and only show the respective data. Create two objects of interns...
a package contains 9 resistors 2 of which are defective if 4 are selected at random...
a package contains 9 resistors 2 of which are defective if 4 are selected at random find the probability of getting 0 defective 1 defective 2 defective
An important part of employee compensation is a benefits package, which might include health insurance, life...
An important part of employee compensation is a benefits package, which might include health insurance, life insurance, child care, vacation days, retirement plan, parental leave, bonuses, etc. Suppose you want to conduct a survey of benefits packages available in private businesses in Hawaii. You want a sample size of 100. Some sampling techniques are described below. Categorize each technique as simple random sample, stratified sample, systematic sample, cluster sample, or convenience sample. Put your answer in the blank. a. Assign...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT