Implement an interface called Developerinfo with the following constant variables: DEV_MONTHLY SALARY 150DD INTERN MONTHLY HOURS...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Implement an interface called Developerinfo with the following constant variables: DEV_MONTHLY SALARY 150DD INTERN MONTHLY HOURS WORED = 150 STOCKS PER MONTH = 2000 Note: Make use of this interface in the below classes wherever applicable. 2. Implement an abstract class Developer with the following requirements: Attributes last name (String) first name (String) ID number (String) Birth date - Use the Calendar Java class to create a date object Default constructor and argument constructors. Public Methods toString returning a string with the following format: ID Employee number Employee name: Birth date: mutators and accessors (getters and setters) abstract method monthlyEarning that returns the monthly earnings. 3. Implement a class called Intern extending from the class Developer with the following requirements: Attribute Hourly rate Default constructor and argument constructors. Public Methods mutators and accessors (getters and setters) The method Earning returns monthly salary (hourly rate times INTERN_MONTHLY_HOURS_WORED) toString returning a string with the following format: ID Employee number Employee name: Birth date: Monthly Salary: Implement a class Education with the following requirements: Attributes Degree (MS or PhD or BS) Major (CS, Software Engg., etc...) Default argument and argument constructors. Public Methods mutators and accessors Implement a class SDE extending from the class Developer with the following requirements: Attributes Level (Use enum Java) "I": SDE1 "II": SDE2 "III': SDE3 Education object Default and parametrized constructor Public Methods mutators and accessors The method monthlyEaming returns monthly salary based on the STOCKS_PER_MONTH + SDE's level: I-developers' monthly salary II - 1.5 times the developer's monthly salary III-2.0 times the developer's monthly salary toString - returning a string with the following format: ID Employee number Employee name: Birth date: Monthly Salary:, Implement a class called Partime extending from the class Intern with the following requirements: Attributes Hours worked per week Default argument and argument constructors Public Methods mutators and accessors The method monthlyEarning returns a monthly salary. The monthly salary is equal to the hourly rate times the hours worked in four weeks. toString - returning a string with the following format: ID Employee number Employee name: Birth date: Hours works per month: Monthly Salary: Implement a test driver program that creates a one-dimensional array of class Developer to store the objects Intern, SDE, and Partime. Question4: UML Diagrams (20 pts): Draw UML Class diagrams for Q2 and Q3. Your diagram should include appropriate symbols and notations, associations, cardinality, constraints, composition, and aggregation wherever possible. Implement an interface called Developerinfo with the following constant variables: DEV_MONTHLY SALARY 150DD INTERN MONTHLY HOURS WORED = 150 STOCKS PER MONTH = 2000 Note: Make use of this interface in the below classes wherever applicable. 2. Implement an abstract class Developer with the following requirements: Attributes last name (String) first name (String) ID number (String) Birth date - Use the Calendar Java class to create a date object Default constructor and argument constructors. Public Methods toString returning a string with the following format: ID Employee number Employee name: Birth date: mutators and accessors (getters and setters) abstract method monthlyEarning that returns the monthly earnings. 3. Implement a class called Intern extending from the class Developer with the following requirements: Attribute Hourly rate Default constructor and argument constructors. Public Methods mutators and accessors (getters and setters) The method Earning returns monthly salary (hourly rate times INTERN_MONTHLY_HOURS_WORED) toString returning a string with the following format: ID Employee number Employee name: Birth date: Monthly Salary: Implement a class Education with the following requirements: Attributes Degree (MS or PhD or BS) Major (CS, Software Engg., etc...) Default argument and argument constructors. Public Methods mutators and accessors Implement a class SDE extending from the class Developer with the following requirements: Attributes Level (Use enum Java) "I": SDE1 "II": SDE2 "III': SDE3 Education object Default and parametrized constructor Public Methods mutators and accessors The method monthlyEaming returns monthly salary based on the STOCKS_PER_MONTH + SDE's level: I-developers' monthly salary II - 1.5 times the developer's monthly salary III-2.0 times the developer's monthly salary toString - returning a string with the following format: ID Employee number Employee name: Birth date: Monthly Salary:, Implement a class called Partime extending from the class Intern with the following requirements: Attributes Hours worked per week Default argument and argument constructors Public Methods mutators and accessors The method monthlyEarning returns a monthly salary. The monthly salary is equal to the hourly rate times the hours worked in four weeks. toString - returning a string with the following format: ID Employee number Employee name: Birth date: Hours works per month: Monthly Salary: Implement a test driver program that creates a one-dimensional array of class Developer to store the objects Intern, SDE, and Partime. Question4: UML Diagrams (20 pts): Draw UML Class diagrams for Q2 and Q3. Your diagram should include appropriate symbols and notations, associations, cardinality, constraints, composition, and aggregation wherever possible.
Expert Answer:
Answer rating: 100% (QA)
Data Storage and Structure Image 3 While it doesnt show data storage it provides a basic structure for representing membership information using a Mem... View the full answer
Related Book For
Auditing and Assurance services an integrated approach
ISBN: 978-0132575959
14th Edition
Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley
Posted Date:
Students also viewed these programming questions
-
I need translate this class diagram to simple gui java code application main functions is add , delete, payment, search book User -userName: String -ID: int -password: String -firstName: String...
-
Q1. For the deformation describe below, address in much detail as possible the following. x 1 = X 1 + 2X 3 , x 2 = X 2 2X 3 , x 3 = 2X 1 + 2X 2 + X 3 a) Consider the two line elements dX (1) = It is...
-
1. What is cost measurement? Cost accumulation? What is the difference between the two? 6.How do firms collect job-related information on driver usage in an activity-based costing system? 9.Why would...
-
A 30-year maturity bond making annual coupon payments with a coupon rate of 12% has duration of 11.54 years and convexity of 192.4. The bond currently sells at a yield to maturity of 8%. Use a...
-
The accountant is entitled to assume that readers of financial statements will read and understand all the notes to the accounts. Discuss.
-
Let a point charge Q 1 = 25 nC be located at P 1 (4,2, 7) and a charge Q 2 = 60 nC be at P 2 (3, 4,2). (a) If = 0, find E at P 3 (1, 2, 3). (b) At what point on the y axis is E x = 0?
-
Measure and report bad debt expense and the allowance for doubtful accounts. - The primary issues in accounting for accounts receivable are when and how to measure bad debts (i.e., accounts that will...
-
The intangible assets section of Time Company at December 31, 2010, is presented below. Patent ($100,000 cost less $10,000 amortization)..... $ 90,000 Copyright ($60,000 cost less $24,000...
-
Given the function graphed below, evaluate the definite integrals. 4 UT f(x) di = f(x ) da =
-
Biome Startup, Inc. (BS) is dedicated to improving the world's soil health one farm at a time. BS implements AI technology in the science of soil management and crop production to create a virtual...
-
explanation on how to get the answer of every question. = Taxable Income 423,400 436,573 450,102 minus: Taxes 88,914 91,680 94,521 = Net Income 334,486 344,893 355,580 minus: Principal 63,604 66,784...
-
Explain the dynamics of gender relations in the African American quest for freedom. Explain why someones perspective on contemporary Black-White relations is American race relations have a long way...
-
The Cobalt Company needs you to compute for the missing items using the following information: Using a 2-way variance method: the standard Factory overhead is P7,500, Controllable variance of P500...
-
A Balanced Scorecard Analysis: A brief comparison and explanation of your team compared to the other teams in the simulation for your selected quarter. Please include graphs or charts of simulation...
-
Your classmate earned six hundred seventy five thousand dollars by investing in Pepe, a popular meme coin trading in crypto markets. She is considering investing the money for 14 years into an...
-
Evaluate limx1 x-1 x-1
-
140. Suppose Kathy Lentz Company sells hand tatted lace for $25 per yard. Her materials cost $4 per yard and labor costs her $10 per yard. She also estimates her fixed cost to be $50 per month. If...
-
The vapor pressure of the liquid NH, is measured at different temperatures. The following vapor pressure data are obtained. Temperature, K P, mmHg 217.1 223.4 234.7 588.1 Calculate the enthalpy of...
-
Lauren Yost & Co., a medium-sized CPA firm, was engaged to audit Stuart Supply Company. Several staff were involved in the audit, all of whom had attended the firm's in-house training program on...
-
In the audit of Price Seed Company for the year ended September 30, the auditor set a tolerable misstatement of $50,000 at an ARIA of 10%. A PPS sample of 100 was selected from an accounts receivable...
-
Grande Stores is a large discount catalog department store chain. The company has recently expanded from 6 to 43 stores by borrowing from several large financial institutions and from a public...
-
Suppose that the current price of Stock A is \(\$ 70\) per share and the price follows the jump diffusion model in Eq. (6.26). Assume that the risk-free interest rate is \(8 \%\) per annum and the...
-
The file "d-csco9199.dat" contains the daily log returns of Cisco Systems stock from 1991 to 1999 with 2275 observations. Suppose that you hold a long position of Cisco stock valued at \(\$ 1\)...
-
Considering the forward price \(F\) of a nondividend-paying stock, we have \[ F_{t, T}=P_{t} e^{r(T-t)} \] where \(r\) is the risk-free interest rate, which is constant and \(P_{t}\) is the current...
Study smarter with the SolutionInn App