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
-
Why is it so easy to develop and then retain racial prejudices? How can we break this mold?
-
Is Target's store brand strategy working? Explain principle of marketing
-
Use the results of Exercise 81 to show that the function have inverses over their domains. Find a formula for d -1 /dx using Theorem 3 (x) = 1 - 8x 3 Exercise 81 Show that increasing functions and...
-
Thomas Rusnack and his then-wife, Analisa Rusnack, opened a home equity line of credit (HELOC) with Cardinal Bank in August 2003. Between 2003 and 2006, the Rusnacks periodically drew on the HELOC...
-
Borders Group, Inc., presented this information in its 10-Ks: Required a. Compute the following liquidity ratios for 2009 and 2008: 1. Days sales in inventory 2. Inventory turnover (use ending...
-
Annual sales (in millions of units) of a certain brand of tablet computers are expected to grow in accordance with the function f ( t ) = 0.18 t 2 + 0.16 t + 2.64 (0 t 4) per year, where t is...
-
Jay Gatsby categorizes wines into one of three clusters. The centroids of these clusters, describing the average characteristics of a wine in each cluster, are listed in the following table. Jay has...
-
A shed with a cost of $10,000 and accumulated depreciation of $7,500 was torn down. Prepare the journal entry to record the disposal of this asset. How much will the credit side of this entry be in...
-
During 2015, Franklin, who is single, made the following gifts (all outright gifts, no trusts): Property worth $1,264,000 to his daughter $3,014,000 cash to his favorite grandchild Real estate worth...
-
WW Company Limited ("the Company") is a Hong Kong corporation engaged in the retails of furniture with various chain stores in Hong Kong. The Company's statement of profit or loss for the year ended...
-
Air Canada Robert Milton had been fascinated by flying ever since childhood and dreamed of running an airline company. But as he grew up and entered the industry, Milton came to see how poorly the...
-
Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their...
-
Suppose a manager models their financials and has to account for the maximum of two costs. What is the best way to model this and maintain linearity?
-
A line L is tangent to the curve y = x4 - z at the point P(s, t). If L also passes through (0, -3) and (1, 8), then s is (a) 1 (b) -1 (c) -1/2 (d) 2 (e) none of these
-
Fred Farmer needs to prepare a balance sheet for his bank. He spent the day getting the following information. Fred needs your help to build a balance sheet and evaluate it. The information was...
-
State what is meant by the term peer review. What are the implications of peer review for the profession?
-
Multiple Choice Questions The following questions concern CPA firms' liability under common law. Choose the best response. a. Sharp, CPA, was engaged by Peters & Sons, a partnership, to give an...
-
Anthony, CPA, prepared the flowchart (p. 330) which portrays the raw materials purchasing function of one of Anthony's clients, Medium-Sized Manufacturing Company, from the preparation of initial...
-
Sheds Ahead Ltd produces outdoor sheds for domestic use. The manager in charge of production has been asked to prepare a production budget, a direct materials budget and a direct labour budget for...
-
Sami Stitches Ltd produces two types of sewing machines, a standard model and a deluxe model. The budgeted factory overhead costs for the production operation during 2020 are as follows. Production...
-
Gasmania Pty Ltd produces patio heaters for household use. The following information has been gathered so that a production budget, a direct materials budget and a direct labour budget for part of...
Study smarter with the SolutionInn App