Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A. Write a Java Program that includes the following details You are tasked to create a program to implement a simple Employee Management System

A. Write a Java Program that includes the following details You are tasked to create a program to implement a c) Create a default constructor with no parameter d) Create a parameterized constructor that will call the

A. Write a Java Program that includes the following details You are tasked to create a program to implement a simple Employee Management System that will provide information about Employees such as their salary and Employment status. 1. Create an Employee class and do the following: a) Declare the following member variables: Employee Id, and Employee Name b) Create a default constructor with no parameter. c) Create a parameterized constructor to initialize all the member variables. d) Create a method to display all the member variables. 2. Create a class Admin and do the following: a) The class should inherit the Employee Class. b) Declare a member variable Basic Salary and Allowance c) Create a default constructor with no parameter d) Create a parameterized constructor that will call the constructor of the parent class (super class) and then initialize the member variables. e) Create a method that will return a value to calculate the total Salary by the Employee using the formula below: Total Salary = Basic Salary + Allowance f) Create an overriding method to display all the member variables. The method should invoke/call the super class display method and then display also all the member variables of this class. 3. Create a class Teaching and do the following: a) The class should inherit the Employee Class. b) Declare a member variable Total number of teaching hours and Advising hours c) Create a default constructor with no parameter d) Create a parameterized constructor that will call the constructor of the parent class (super class) and then initialize the member variables. e) Create a method that will return a value to determine the status of the Employee based on the criteria below: When Total number of teaching hours is greater than or equal to 18 AND Advising hours is greater than or equal to 2 then the status of the Employee is "Full Load". Otherwise the status of the Employee is "Not Full Load" The method should return the status of the Employee. f) Create an overriding method to display all the member variables. The method should invoke/call the super class display method and then display also all the member 4. Create a controlling class and do the following: Create an object for the two (2) subclasses Read the input, call the necessary methods, and display the required output as shown variables of this class. below Sample Input/Output: run: Input Employee Name: Abdullah Input Employee Id: 123 Input Basic Salary: 1000.500 Input Allowance : 400.7 Details of Employee Id : 123 Employee Name : Abdullah Admin Employee Details with Salary Basic Salary: 1000.5 Allowance = 400.7 The Total Salry is 1401.2 Input Totao Teaching Hours: 18 Input Advising Hours: 2 Details of Employee Id : 123 Employee Name : Abdullah Teaching Employee Details with Load Total number of teaching hours: = 10 Advising hours: 2 Status of teaching Employee is Full Load BUILD SUCCESSFUL (total time: 40 seconds)

Step by Step Solution

3.40 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

java import javautilScanner class Employee int employeeId String employeeName public Employee public Employeeint id String name employeeId id employee... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Management

Authors: Gareth Jones, Jennifer George

9th Edition

0077718372, 978-0077718374

More Books

Students also viewed these Programming questions

Question

What favors the formation of continuous (dense) cleavage?

Answered: 1 week ago