AutomobileInsurance TravelInsurance 0.25 % 0.75 % 0.73 % Section 1 : Java Program File
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 :
Implement all the four ( 4 ) Java classes described with the correct inheritance of abstract classes .
Calculate the premium and multiply the value of the object being insured by the corresponding RATE . Note : See the RATE tables above .
Get a quote and add all the premiums for all the objects being insured . Include a driver problem to test the implementation in which it :
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 abstractInsuranceAgentApp class ).