The class is an abstract class. The , and classes inherit from the abstract class. The specifications of each class are described below. The column on the left shows the class members and the column on the right provides a description of the class members. The ‘ ‘ designates a static member; the ‘ ‘ designates a constructor; and the ‘ ‘ designates an abstract member. The data types of each class member are shown on the left column. The RATEs used to calculate the premiums are: Create an interactive Java application for the insurance agent in order to generate a quote for a household. According to your design, the program must: – Uses the System.out.* and System.in.* methods for all the input / output. – Includes an object of each insurance type. Prompts the user to enter the type and riskAmount (or value of the object being insured). – Displays the values in each of the objects created using the display() method. – Displays the quote (totalPremium in the abstract InsuranceAgentApp class). Create a screenshot of the driver testing and include a copy of source code of the implementation. The specific course learning outcomes associated with this assignment are: Purchase the answer to view it

The assignment requires the creation of an interactive Java application for an insurance agent to generate a quote for a household. The program should use the System.out.* and System.in.* methods for input/output and include an object for each insurance type. The user should be prompted to enter the type of insurance and the value of the object being insured.

To accomplish this, we need to create an abstract class called InsuranceAgentApp, as well as two classes that inherit from it: HomeInsurance and CarInsurance. The abstract class will contain the main logic for calculating premiums and displaying the quote, while the child classes will provide specific implementations for their respective insurance types.

Here is an outline of the class members and their descriptions:

InsuranceAgentApp:
– Static double RATE: the rate used to calculate the premiums
– Constructor InsuranceAgentApp(): initializes the InsuranceAgentApp object
– Abstract method double calculatePremium(double riskAmount): calculates the premium based on the risk amount
– Abstract method void display(): displays the values in the object
– Abstract method double totalPremium(): calculates the total premium for the insurance quote

HomeInsurance:
– double riskAmount: the value of the house being insured
– Constructor HomeInsurance(double riskAmount): initializes the HomeInsurance object with the specified risk amount
– double calculatePremium(double riskAmount): calculates the home insurance premium based on the risk amount
– void display(): displays the values in the HomeInsurance object
– double totalPremium(): calculates the total premium for the home insurance quote

CarInsurance:
– double riskAmount: the value of the car being insured
– Constructor CarInsurance(double riskAmount): initializes the CarInsurance object with the specified risk amount
– double calculatePremium(double riskAmount): calculates the car insurance premium based on the risk amount
– void display(): displays the values in the CarInsurance object
– double totalPremium(): calculates the total premium for the car insurance quote

The specific task for the program is to create an interactive application where the user is prompted to enter the type of insurance and the value of the object being insured. The program then creates an object for the corresponding insurance type and displays the values in the object. Finally, the program calculates and displays the total premium for the insurance quote.

To complete the assignment, a screenshot of the program being tested and the source code implementation should be included. This will demonstrate the functionality and correctness of the program.

The learning outcomes associated with this assignment include understanding polymorphism, abstraction, and inheritance in object-oriented programming. By creating the abstract class and its inheritors, students will gain practical experience in designing and implementing class hierarchies. Additionally, the assignment will reinforce skills in input/output handling and mathematical calculations in Java.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer