Question: Exercise # 2 : Create an abstract class called Software Architect. The Software Architect class includes a name for the developer, an address object (

Exercise #2:
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 (full-time, part-time). The address object should have 4 parts: 1) country, 2) city, 3) street, 4) postal code.
Include an abstract method to determine the salary, with full-time Software Architect getting a base salary of $6500 and part-time Software Architect getting $55 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 part-time Software Architect and number of days in a month for the full-time Software Architect. Your program should calculate and show the amount of payment for each one. Part-time payment equals hours * part-time salary rate, full-time payment equals number of days * fixed salary /30. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!