A. Write a Java Program that includes the following details You are tasked to create a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Answer rating: 100% (QA)
java import javautilScanner class Employee int employeeId String employeeName public Employee public Employeeint id String name employeeId id employee... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
For this assignment, perform a comparative review of databases vs. data warehouses. Ensure that you explain the differences between databases and data warehouses. Provide examples of both and answer...
-
Discuss a few main features of the database warehouse. Discuss two or three expertise necessary to be an efficient administrator of a data warehouse. Discuss some challenges in data warehousing.
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
What favors the formation of continuous (dense) cleavage?
-
Find the location and magnification of the image produced by the mirror in Problem 26 using the mirror and magnification equations. In problem 26 An object with a height of 33 cm is placed 2.0 m in...
-
At the balance sheet date, a business owes a five-year mortgage note payable of $480,000, the terms of which provide for monthly payments of $8,000. Explain how the liability should be classified on...
-
Which employee is most likely to be a representative of Generation X? A. Mary, who has worked at the hospital for 10 years and would not think of quitting. B. Sue, who is motivated by money and will...
-
1. If Lightcos contribution margin is 40 percent, what increase in sales will it need to break even on the increase in fixed costs to hire the new sales reps? 2. How many new retail accounts must the...
-
Come - Clean Corporation produces a variety of cleaning compounds and solutions for both industrial and household use. While most of its products are processed independently, a few are related, such...
-
1H NMR spectra for two haloalkanes are shown below. Propose structures for these compounds that are consistent with the spectra. (a) C5H11C1, spectrum A; (b) C4H8Br2, spectrum B. H NMR 9 H 2 H...
-
Fig.15.38 shows a compound epicyclic gear train in which two sun gears S, and S, are integral with the input shaft X. The arm B, is integral with the output shaft Y. The planet gear P2 revolves on a...
-
On June 8, Sheridan Ltd. was incorporated and issued 34,200 common shares for $342,000. On August 19, an additional 8,550 shares were issued for $102,600. On November 2, the company paid $32,832 to...
-
A CMSV Psychology major from the class of '22 did her Honors Thesis on the relationship between Covid stress and working memory. You will look at the sample of N = 78 scores on the Covid-Stress-Scale...
-
A javelin thrown from 1 . 9 m travels 7 2 . 2 8 m in 3 . 9 1 s before it returns to the release height. What is the maximum height of the throw?
-
A loan of $ 5 0 , 0 0 0 can be paid off by 4 annual payments of $ 1 6 , 0 0 0 each. What is the interest rate on this loan?
-
Starting from rest, a 1.20 kg block slides 1.50 m down a 40.0 inclined plane. If the speed of the block at the bottom is 2.21 m/s, find the work done by friction on the block.
-
A soap bubble, when illuminated at normal incidence with light of 563 nm, appears to be especially reflective. If the index of refraction of the film is 1.33, what is the minimum thickness the soap...
-
Can partitioned join be used for r r.A s? Explain your answer
-
What kind of controls would you expect to find most used in (a) a hospital, (b) the Navy, (c) a city police force? Why?
-
You are the new manager of a major clothing store that is facing a crisis. This clothing store has been the leader in its market for the last 15 years. In the last three years, however, two other...
-
1. Either by yourself or in a group, explore the ethics of using an IT for personal uses at work. Should employees have some rights to use these resources? When does their behavior become unethical?...
-
In the long run, a. the average fixed cost curve is U-shaped. b. the average fixed cost exceeds the average variable cost of production. c. all costs are variable. d. all costs are fixed. e. none of...
-
What are constant returns to scale?
-
If a firms ATC is falling in the long run, then a. it is subject to economies of scale over that range of output. b. it is subject to diseconomies of scale over that range of output. c. it is subject...
Study smarter with the SolutionInn App