Question
ST Insurance Brokers, Inc. needs your help to create a program to calculate the total cost of insurance policies issued by its brokers. Write a
ST 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 The example run below shows how the program would run. Note, user input is denoted in orange. Example run #1 What type of insurance do you need? Apartment Would you like premium protection? yes The Apartment insurance you selected costs $475.00. Example run #2 What type of insurance do you need? Auto The Auto insurance you selected costs $200.00. Example run #3 What type of insurance do you n
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