Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that performs the following tasks: 1. Develop a program that calculates the cost of a discount virtual comic book subscription service.

Write a C++ program that performs the following tasks:

1. Develop a program that calculates the cost of a discount virtual comic book subscription service.

a. The cost of the service is determined by the base price and number of comic books purchased

b. The packages are structured so that the basic package, package "A," is the least expensive if the customer doesn't buy many e-comics, however if the customer buys more than the included amount, they are charged a per-issue rate for each additional issue.

c. Customers who choose package C pay a flat rate for unlimited downloads.

d. The cost of Package B is between these extremes. Details of the packages structure are listed here: Package A: $9.95 for 10 comics, $2.00 for each additional comic download Package B: $19.95 for 20 comics, $1.00 for each additional comic download Package C: $39.95 for unlimited comic book downloads

2. The customer should be able to ask for new quotes until they quit the program (the program should loop until the customer enters Q or q to quit)

3. The program should use a switch to check the validity of customer input

a. The customer is required to enter a character to represent the package chosen. If a character other than (A, a, B, b, C, c, "Q", "q") is entered, the program provides a message and re-prompts them for a new package selection. The program will continue to prompt the customer until a valid package is chosen. Assume the customer will only enter a single character; there is no need to error check for entries of multiple characters.

b. The customer is required to enter the number of comics downloaded. Assume the customer will only enter integers; there is no need to error check for letters or decimal values.

4. The program will inform the customer if it would be less expensive to change plans. (plan A to B or C etc) and display the cost saving.

a. If both of the alternate plans would save the customer money, then BOTH plans should be output as options. Do not output only the most affordable plan

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions