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
-
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...
-
Identify an example of spontaneous creativity from the following Settling a disagreement quickly in a simple way Organizing annual meetings and get-togethers innovatively Establishing win-win...
-
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 - x) 3 Exercise 81 Show that increasing functions and...
-
Leicht Transfer & Storage provides warehousing services and often purchases pallets from Pallet Central. The companies followed a standard practice for documenting these transactions in which Pallet...
-
South Central Utilities has just announced the August 1 opening of its second nuclear generator at its Baton Rouge, Louisiana, nuclear power plant. Its personnel department has been directed to...
-
Explain briefly why countries trade If two countries, Chile and Agentina start to trade, what will determine what each country will exportor import? Explain why countries do not produce everything...
-
We have learned how companies come up with their interim financial reports. Please pick a publicly traded company of your choice, look up its more recent quarterly report on its website, and comment...
-
Explain the general concept of Special Operations, list the two types of Special Operations Missions and then explain how they play a part in helping to develop US National strategy abroad.
-
2. Which inventory control system uses an order of the same size each time?
-
You expect the following dividend distribution policy for SUPER Company: [1] The company will pay cash dividend $1 per share (per year) in next two years; [2] At the end of the third year, the...
-
(8 points) The following program is supposed to add two numbers to obtain the sum... but it does not work due to errors. How do you propose to fix the errors in the program so that variable "Result"...
-
All values USD millions. Sales/Revenue Cost of Goods Sold (COGS) incl. D&A COGS excluding D&A Depreciation & Amortization Expense Depreciation Amortization of Intangibles Gross Income SG&A Expense...
-
The Department of Health has announced its plans for a project to build a new hospital in Khayelitsha. In your view, are all the people of Cape Town stakeholders in this project? Explain your reasons.
-
Choose the best option from the following (V=-v= lim VI - 2 00 () -2 (b) 2 (c) -o (d) 1 (e) none of these
-
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...
-
A function \(f\left(x_{1}, x_{2} ight)\) of two variables \(x_{1}\) and \(x_{2}\) is given by a. Multiply the matrices and express \(f\) as a polynomial in \(x_{1}\) and \(x_{2}\). b. Determine the...
-
A function \(f(x, y, z)\) of \(x, y\), and \(z\) is defined as a. Multiply the matrices and express \(f\) as a polynomial in \(x, y\), and \(z\). b. Write down the three equations necessary to find...
-
Solve the matrix equation \([\mathbf{K}]\{\mathbf{Q}\}=\{\mathbf{F}\}\) using forward reduction and backward substitution, where, 5-10 [K] = -13-1 0-1 1 {F}= 0
Study smarter with the SolutionInn App