Question: Create a java program that keeps track of Employees, Students and visitors. The address for all employees and students must be recorded by the system.
Create a java program that keeps track of Employees, 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. Employee attributes that the user must enter into the system is First name, last name, gender and address. The students attributes must be First name , last name, gender, Date of birth. The visitors attributes must be first name, last name date of visit and time of visit. There are two types of employees Regular and Teachers, express this information in an enumerated class. Regular employees are paid a gross of $100,000.00 monthly and teachers are paid at a rate of $2,100.00 Per hour. Teachers work a maximum 25 paid hours per week and deliver no more than 4 subjects per academic year. If a teacher is delivering more than 3 subjects they will receive an additionally $3,000.00 weekly. If the employee is a teacher the system must calculate and display the gross weekly amount earned, otherwise just display the gross as stated. Create an abstract super class called Individual so that employees, 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(Individual 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 calculateGrossSalary(). This method must be implemented by 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
