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?
-
1. a) In the BOP accounts, what are the four basic components of the current account? b) How can information about the financing of a country's current account be obtained? 2. a) How can the Big Mac...
-
How is the ctenidium modified from the ancestral form in a typical bivalve?
-
Explain with a neat sketch the working of a centrifugal pump.
-
In January 2014, Wanda transferred machinery worth $200,000 (adjusted basis of $30,000) to a controlled corporation, Oriole, Inc. The transfer qualified under 351. Wanda had deducted $165,000 of...
-
Pavlos, Inc., is expecting a period of intense growth, so it has decided to reduce its annual dividend by 10 percent a year for the next three years. After that, it will maintain a constant dividend...
-
On January 1, 2023, Logan Limited had shares outstanding as follows: 6% cumulative preferred shares, $100 par value, 10,000 shares issued and outstanding $1,000,000 Common shares, 200,000 shares...
-
Read the article Starbucks coffee company: Transformation and renewal, and then answer the following question: Why did the aspects in question 2 matter to the survival and transformation of the...
-
On January 1, 2024, Alamar Corporation acquired a 40 percent interest in Burks, Incorporated, for $210,000. On that date, Burks's balance sheet disclosed net assets with both a fair and book value of...
-
1. Describe or summarize your previous the topic and technology in your previous discussion. 2. How has your understanding about the topic and technology been affected by the social science lens? 3....
-
How much does it cost to fully charge an electric car for 10 hours, if its battery draws a 30-A electric current from 240-V power line, and the electric company charges $0.20 for kilowatt hour. Show...
-
1. What is it that a bank wishes to protect from adverse movements in interest rates? 2. What is the goal of hedging in banking? 3. What is the concept of gap management? 4. How is a bank's duration...
-
9. Use "rpart" and "rpart.plot" packages to create decisions trees and answer the questions below. 9.1. (8 points) Create a decision tree using variable gen_election as the target (class) variable...
-
6. In a DNA molecule, the phosphate serves A) as a code to hold the molecular backbone together C) to bind the sugars to their bases D) as nucleotides E) to connect nitrogenous bases to the...
-
For the following exercises, find the area of the triangle. Round to the nearest hundredth. 22 50 36
-
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?...
-
How do expectancy theory, goal-setting theory, and self-efficacy theory operate during the motivation process?
-
Do you believe the managers suggestions were effective? Why or why not?
-
How would you describe the price movement of the security during the third quarter (01-July-2004 to 01-Oct-2004)?
Study smarter with the SolutionInn App