Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how would this be set up in c++? with a continuous loop until user inputs 'N' to end the loop with the message good-bye have

how would this be set up in c++? with a continuous loop until user inputs 'N' to end the loop with the message "good-bye have a great day?" image text in transcribed
image text in transcribed
image text in transcribed
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

Students also viewed these Databases questions

Question

1. What is meant by Latitudes? 2. What is cartography ?

Answered: 1 week ago