Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

could I get help setting this up in c++? using switch and if statements Basic Plan B cost $10.00 monthly with $200.00 deductible and 40%

could I get help setting this up in c++? using switch and if statements image text in transcribed
image text in transcribed
image text in transcribed
Basic Plan B cost $10.00 monthly with $200.00 deductible and 40% copay. Basic Plan S cost $30.00 monthly with $100.00 deductible and 20% copay. Basic Plan D cost $75.00 monthly with $0.00 deductible and 0% copay. Which plan do you want? (B, S, D): B How many prescriptions for the year? (1 - 96): 20 Plan B will cost you for the year: $640.00. Do you want to go again (y)? y Which package are you shopping for? (B, S, D)? b How many prescriptions for the year? (1 - 96): 70 Plan B will cost you for the year: $1640.00 By switching to Package S you would save $500.00 By switching to Package D you would save $740.00 Do you want to go again? (y): y Which package are you shopping for? (B, S, D): S How many prescriptions for the year? (1 - 96): 45 Plan S will cost you for the year: $890.00 Do you want to select another plan? (y): Y Which package are you shopping for? (B, S, D): D How many prescriptions for the year? (1 - 96): 20 The charges for plan D is $900.00 By switching to Package B you would save $260.00 By switching to Package S you would save $260.00 Do you want to go again (y)? y 1. Develop a program that calculates the cost of an Insurance plan service: Display a menu of options to allow the user to select a prescription payment plan. Prompt the user for plan selected. o "B" Basic plan o "S" Standard plan O "D" Deluxe plan Prompts the user to enter an estimated number of prescriptions that will be filled in one year Displays the estimated annual cost of the prescription drug payment plan, based on plan selected estimated number of prescriptions Check the other plans and display all plans that would be a lesser choice than selected and how much they would save Plans Monthly Premium Deductible Copay B $10.00 $200.00 40% S $30.00 $100.00 20% D $75.00 $0.00 0% NOTE: Each prescription will cost $50.00. Copay starts after user meets deductible 2. Loop until user does not want to select another plan option. This software is a "what if" price quote producer, so after getting the first quote, the user can continue to ask for quotes and see results. After each quote, the system will prompt the user to keep going (y or n), until the user enters the letter "n" (not case sensitive) after a successful quote. You should assume that the software will run at least ONCE! 3. The program will require some validity checking on plan selection The user is required to enter a character to represent the package chosen. If a character other than ('B', 'b', 'S', 's', 'D', 'd') is entered, the program provides a message and re- prompts them for a new package selection. The program will continue to prompt the user until a valid package is chosen. Assume the user will only enter a single character, there is no need to error check for entries of multiple characters. Invalid Selection Example: Sorry, 'Z' is not a valid plan option. Please try again. 4. The program will require some validity checking number of prescriptions. The user is required to enter the number of prescriptions units used; it must be between 1 and 96 inclusive. If a value outside that range is entered the program provides an error response and prompts the user to try again. Assume the user will only enter integers, there is no need to error check for letters or decimal values 5. Determine if there is another plan that will save cost over the plan picked. The program will inform the user if it would be less expensive to change plans. (plan B to S and/or D etc) and display the cost saving for all plans that will save cost over plan selected

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago