Question
Note: For input/output, you must use the JOptionPane class. IST Insurance Brokers, Inc. needs your help to create a program to calculate the total cost
Note: For input/output, you must use the JOptionPane class.
IST Insurance Brokers, Inc. needs your help to create a program to calculate the total cost of insurance policies issued by its brokers. Write a small Java program that prompts the user for a type of insurance policy and then determines the total policy cost.
The company currently supports only three types of insurance policies: Apartment, Auto, and Condo. When a user enters a different type of insurance policy, they should be told the program does not support that type of insurance policy at this time.
Use the information below to determine total policy cost:
Apartment - Has a base cost of $300.00 with the option to purchase premium protection for an additional $175.00 Auto - Has a base cost of $200.00 Condo - Has a base cost of $300.00 with the option to purchase premium protection for an additional $175.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started