CIS 407 All Assignments CIS 407 All Assignments | Page 16
the three get methods return values of the three variables.
setInsuredObjectName(),setRiskAmount(), anddisplay() are implementations of the abstract
methods.
The RATEs used to calculate the premiums are:
PropertyInsurance
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.