Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

java Miraki Evening Institute has been offering various CSEC subjects to the ent

ID: 3605508 • Letter: J

Question

java

Miraki Evening Institute has been offering various CSEC subjects to the entire Caribbean population for numerous years. There success rate is the best in the region and as such has seen an exponential growth in stakeholder interest. The managers and owners are seeking to modernize the operations of the institution. One such modernization initiative is to keep track of Emplayees, Students and visitors. The address for all employees and students must be recorded by the system. For an address to be valid it must have the following attributes, street city and parish. See Table 1 below for the minimum details stored on each category of person Table 1 Employee8 First Name Students First Name Visitors First Name Gender Gander Date Of Birth Time of Wsit ddress Subjects Page 1 af There are two types af employees Regular and Teachers, express this information in an enumerated class, Regular employees are paid a gross of $200,000.00 monthly and teachers are paid at a rate of $3,000.00 Per hour. Teachers work a maximum 30 paid hours per week and deliver no more than 5 subjects per academic year, if a teacher is delivering more than 3 subjects she will receive an additional $5,000.00 weekly, If the employee is a teacher the system must calculate and display the gross weekly amount earned, atherwise just display the gross as stated Create an abstract super class called Person so that Emplayees, Students and Visitors can derived the common attributes. Students and Visitors cannot be inherited by any other entity Use an interface to declare the following methods printDetails() and printDetails (Person per) The contact details (name, telephone number and email address) for the school must also be incorporated in the interface. Use another interface to declare a method called calculateGrossSalaryl). This method must be implemented buy the employees entity. Not all the students pursue the same number of subjects. Some may pursue 1, 2, 3, 4 or more subjects, Use regular arrays to implement this functionality All printed output must include the institution's name and contact details. Crete a driver class (a class with a main method) to test the logics of your program.

Explanation / Answer

package institute;

abstract class Person {

String f_Name;

String l_Name;

String gender;

String street;

String city;

String parish;

}

package institute;

enum Employe_enum

{

Regular, Teacher;

}

public class Employees extends Person implements ICalculation {

public void calculateGrossSalary() {

System.out.println(" Inside implemented calculateGrossSalary ");

// TODO Auto-generated method stub

}

}

package institute;

final class Students extends Person {

}

package institute;

final class Visitors extends Person{

}

package institute;

public class DriverClass {

public static void main(String[] args) {

Students S1 = new Students();

S1.f_Name = "John";

S1.l_Name = "carter";

S1.gender = "male";

S1.city = "london";

S1.street = "oxford street";

S1.parish = "sutton";

Employees E1 = new Employees();

E1.f_Name = "Kiren";

E1.l_Name = "Matthew";

E1.gender = "male";

E1.city = "new york";

E1.street = "high street";

E1.parish = "old church gate";

}

}

package institute;

public interface IDetails {

void printDetails();

void printDetails(Person per);

String name = null;

long tel_number = 0;

String email_id = null;

}

package institute;

public interface ICalculation {

void calculateGrossSalary();

}