IN JAVA CodeZinger Dashboard > Classes > 2023 Fall - Ja... > Multi level inheritance Statement Output
Fantastic news! We've Found the answer you've been seeking!
Question:
IN JAVA
Transcribed Image Text:
CodeZinger Dashboard > Classes > 2023 Fall - Ja... > Multi level inheritance Statement Output Code Review Multi level inheritance Comment Given a string NAME and three integers ID, HR, HW. Create a Class HourlyEmployee with following characteristics 1. Extend an Employee class. 2. Private member variable hourly Rate and hoursWorked as an integer. 3. Parameterized Constructor with parameters in the order of NAME, ID, HR (for hourlyRate) and HW (for hoursWorked). 4. Parameterized Constructor should call a super class constructor with NAME and ID. Also, initialize hourly Rate with HR and hoursWorked with HW. 5. The public function getGrosspay without any parameter and return gross pay amount of type integer. Grosspay = (hourlyRate * hoursWorked) Input Alex 101 100 5 Where, First line represents NAME. Second line represents ID. Third line represents hourly rate HR. Forth line represents hours worked HW. Output 101 Alex 500 Where, The first line represents an ID. The second line represents a NAME. The third line represents Gross Pay. + Test Case(s) + Grading Criteria CodeZinger Dashboard > Classes > 2023 Fall - Ja... > Multi level inheritance Statement Output Code Review Multi level inheritance Comment Given a string NAME and three integers ID, HR, HW. Create a Class HourlyEmployee with following characteristics 1. Extend an Employee class. 2. Private member variable hourly Rate and hoursWorked as an integer. 3. Parameterized Constructor with parameters in the order of NAME, ID, HR (for hourlyRate) and HW (for hoursWorked). 4. Parameterized Constructor should call a super class constructor with NAME and ID. Also, initialize hourly Rate with HR and hoursWorked with HW. 5. The public function getGrosspay without any parameter and return gross pay amount of type integer. Grosspay = (hourlyRate * hoursWorked) Input Alex 101 100 5 Where, First line represents NAME. Second line represents ID. Third line represents hourly rate HR. Forth line represents hours worked HW. Output 101 Alex 500 Where, The first line represents an ID. The second line represents a NAME. The third line represents Gross Pay. + Test Case(s) + Grading Criteria
Expert Answer:
Related Book For
Statistics Unlocking The Power Of Data
ISBN: 9780470601877
1st Edition
Authors: Robin H. Lock, Patti Frazer Lock, Kari Lock Morgan, Eric F. Lock, Dennis F. Lock
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Consider the following molecule: Tin II Chloride(SnCl2) Are the bonds polar or non-polar? Is the molecule polar or non-polar?
-
Sasha owes additional tax imposed in a recent audit. In addition to the tax, will she be assessed other amounts? If so, how will these amounts be determined?
-
The revenue from the sale of x units of a product is R = 15(3x + 1)-1 + 50x - 15 dollars Find the marginal revenue when 40 units are sold. Interpret your result.
-
What are the two categories of data mining and knowledge discovery software?
-
Bonita Labs performs steroid testing services to high schools, colleges, and universities. Because the company deals solely with educational institutions, the price of each test is strictly...
-
Briefly list the major administration tasks you can handle to manage a database in cloud. . QUESTION 12 List the major components of email system. QUESTION 13 In a job interview, you are...
-
Archeologists have studied sizes of Egyptian skulls in an attempt to determine whether breeding occurred between different cultures. Listed below are the widths (mm) of skulls from 150 A.D. Construct...
-
A municipal bond carries a coupon of 6.75% and is trading at par. What is the equivalent taxable yield to a taxpayer in a combined federal plus state 34% tax bracket?
-
Your client chooses to invest 70% of a portfolio in your fund and 30% in an essentially risk-free money market fund. What are the expected value and standard deviation of the rate of return on his...
-
Your clients degree of risk aversion is A = 3.5. a. What proportion, y, of the total investment should be invested in your fund? b. What are the expected value and standard deviation of the rate of...
-
In Figure 1, if market price were $140, there would be ______. a) a shortage b) a surplus c) neither a shortage nor a surplus Price ($) 180 160 140 130 120 110 100 Figure 1 S D 20 40 60 80 100 120...
-
Nina Lopez and Matt ORourke have been trying to raise capital to expand their growing chain of cupcake shops, Treasure Cup. They make a full range of traditional cupcakes, but they found immediate...
-
What is the molar concentration of Ba present in 424 ppm of BaCl, 2H,0 (244.3 g/mol) A. 1.73x103 M B. 0.424 M . 1.73 D. More data is required to solve the problem
-
A number of years ago the United Food and Commercial Workers Union organized 800 workers of the 1035 employees at one of the Wilson Brothers food operations in Toronto, Ontario. The employees include...
-
In a Gallup poll conducted in August 2010, a random sample of n = 1013 American adults were asked Do you approve or disapprove of the way Congress is handling its job? The proportion who said they...
-
In Exercise 4.16 on page 232, we describe an observational study investigating a possible relationship between exposure to organophosphate pesticides as measured in urinary metabolites (DAP) and...
-
Match the four p-values with the appropriate conclusion: I. 0.00008 II. 0.0571 III. 0.0368 IV. 0.1753 (a) The evidence against the null hypothesis is significant, but only at the 10% level. (b) The...
-
Let \(Y\) be distributed according to the beta \((1510)\) distribution. (a) Find \(\mathrm{E}[Y]\). (b) Find \(\operatorname{Var}[Y]\). (c) Find \(P(Y <5)\) using the normal approximation.
-
A city is considering building a new museum. The local paper wishes to determine the level of support for this project, and is going to conduct a poll of city residents. Out of the sample of 120...
-
Sophie, the editor of the student newspaper, is going to conduct a survey of students to determine the level of support for the current president of the students' association. She needs to determine...
Study smarter with the SolutionInn App