Question: Exercise # 2 : Create an abstract class called Software Architect. The Software Architect class includes a name for the developer, an address object (
Exercise #:
Create an abstract class called Software Architect. The Software Architect class includes a name for the developer, an address object composition and a Boolean value representing the employment status fulltime, parttime The address object should have parts: country, city, street, postal code.
Include an abstract method to determine the salary, with fulltime Software Architect getting a base salary of $ and parttime Software Architect getting $ per hour.
Create two subclasses called FullTimeSoftwareArchitect, PartTimeSoftwareArchitect. Develop a Java application that creates objects of both subclasses. Allow the user to choose developer type and enter the number of hours for the parttime Software Architect and number of days in a month for the fulltime Software Architect. Your program should calculate and show the amount of payment for each one. Parttime payment equals hours parttime salary rate, fulltime payment equals number of days fixed salary Use JOptionPane to interact with the user.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
