Modify the Java program that you created from Assignment According to

Thehonest
 (Not rated)
 (Not rated)
Chat

This assignment is a modification of Assignment 1. The main difference is that instead of using the System.in.* and System.out.* methods, your will be using the JOptionPane class for all the inputs / outputs.
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 InsuranceAgentApp Java application.
•Display a new driver test program’s user interface Insurance Agent App
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 the JOptionPane.showInputDialog() method to capture the type and riskAmount when the user clicks the Property 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 the JOptionPane.showInputDialog() method to capture the type and riskAmount when the user clicks the Travel button.
•Display the quote (totalPremium in the InsuranceAgentApp class) when the user clicks the “Get a Quote” button.
•End when the user clicks the “Quit” button

 

 

    • 10 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    • insuranceagent2.zip