CIS 407 STUDY Extraordinary Life/cis407study.com CIS 407 STUDY Extraordinary Life/cis407study.com | Page 16

Section 1 : Java Program File ( s )
Modify the Java program that you created from Assignment 1 . According to your design , the program must :
Use the JOptionPane class to create a driver program to test your Assignment 1 InsuranceAgentAppJavaapplication .
Display a new driver test program ‟ s user interface ( The interface should look like the image shown below ):
The new driver test program ‟ s user interface from Question 1b must :
Include a loop to display the user interface until the user clicks the Quit button .
Instantiate a PropertyInsurance object and use theJOptionPane . showInputDialog () method to capture the type and riskAmount when the user clicks theProperty button .
Instantiate an AutomobileInsurance object and use the JOptionPane . showInputDialog () method to capture the type and riskAmount when the user clicks the Automobile button .
Instantiate a TravelInsurance object and use theJOptionPane . showInputDialog () method to capture the type and riskAmount when the user clicks theTravel button .
Display the quote ( totalPremium in theInsuranceAgentApp class ) when the user clicks the “ Get a Quote ” button .
End when the user clicks the “ Quit ” button . Section 2 : Screenshot of the Execution of the Implementation
Create a screenshot of the execution and include a copy of source code of the implementation .