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?
-
Matt and Lori recently were divorced. Although grief stricken, Matt was at least partially comforted by his monthly receipt of $10,000 alimony. He was particularly excited to learn from his friend,...
-
Write a paper on "Trump's expected ban on refugees, who could be affected"?
-
The W12 \(\times 87\) structural A-36 steel column has a length of \(12 \mathrm{ft}\). If its bottom end is fixed supported while its top is free, and it is subjected to an axial load of \(P=380\)...
-
Calculating Annuity Values Bilbo Baggins wants to save money to meet three objectives. First, he would like to be able to retire 30 years from now with retirement income of $20,000 per month for 20...
-
You wish to do a series of maintenance plans to automate the maintenance of your SQL server. What tasks should you schedule daily at minimum? List 4
-
The Linux kernel is the largest component of the Linux operating system and is charged with managing the hardware, running user programs, and maintaining the security and integrity of the whole...
-
If we are trying to relate output to labor inputs and capital inputs using regression analysis, would we expect the coeffi cients of the regressions to be positive or negative? Why?
-
Economists defi ne the elasticity of substitution as the percentage change in the capital/ labor ratio elicited by a 1 percent change in the factor price (wages/capital costs, for example) ratio....
-
Using the creative thinking guidelines, think about how you would increase the usage of products or services if you were the manager of: a. Doritos b. Charles Schwab e. GAP
-
B. Croft has a job as a car salesman. He is paid a basic salary of 200 per month, with a commission extra of 2 per cent on the value of his car sales. During the month of April 2012 he sells 30,000...
-
A Draw up a bank reconciliation statement, after writing the cash book up to date, ascertaining the balance on the bank statement, from the following as on 31 March 2012: Cash at bank as per bank...
-
3. Find the divergence and curl of F (1 point) Consider the vector field F(x, y, z) = (-3yz, 5xz, xy). Find the divergence and curl of F. div(F) = V. F= 0 curl(F) = V xF =( 4 -8
-
Based on the scenario described below, generate all possible association rules with values for confidence, support (for dependent), and lift. Submit your solutions in a Word document (name it...
-
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...
-
Determine the state of steam at : (a) \(p=14\) bar and \(t=210^{\circ} \mathrm{C}\), and (b) \(p=8\) bar and \(2700 \mathrm{~kJ} / \mathrm{kg}\) of heat supplied to water from
-
The following readings were taken with a separating and throttling calorimeter: \[ \begin{aligned} \text { Initial pressure } & =12 \mathrm{bar} \\ \text { Final pressure } & =1.2 \mathrm{bar} \\...
-
Determine the condition of steam in the following cases : (a) At a pressure of 10 bar and \(200^{\circ} \mathrm{C}\). (b) At a pressure of 8 bar and specific volume of \(0.22 \mathrm{~m}^{3} /...
Study smarter with the SolutionInn App