Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement an interface called Developerinfo with the following constant variables: DEV_MONTHLY SALARY 150DD INTERN MONTHLY HOURS WORED = 150 STOCKS PER MONTH = 2000

image text in transcribed imageimage

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Data Storage and Structure Image 3 While it doesnt show data storage it provides a basic structure for representing membership information using a Mem... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing and Assurance services an integrated approach

Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley

14th Edition

133081605, 132575957, 9780133081602, 978-0132575959

More Books

Students also viewed these Programming questions

Question

b. Where is it located (hospital, research institute, university)?

Answered: 1 week ago