Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Problem A mobile phone service provider has three different subscription packages for its customers: Package A: For $39.99 per month 450 minutes are provided.

C++ Problem

A mobile phone service provider has three different subscription packages for its customers:

Package A: For $39.99 per month 450 minutes are provided. Additional minutes are $0.45 per minute

Package B: For $59.99 per month 900 minutes are provided. Additional minutes are $0.40 per minute.

Package C: For $69.99 per month unlimited minutes provided.

Your program should ask which package the customer has purchased and how many minutes were used.

Then, it displays the customers monthly bill and how much money the customer would save if she purchased the other two packages. If there would be no savings, "No Saving" should be printed.

You must use constants for menu choices. You must use constants for base package rates. You must use constants for the minutes provided. You must use constants for additional minute rates. You must use the switch statement.

Sample Run:

Select a subscription package:

1. Package A

2. Package B

3. Package C

4. Quit

3

How many minutes were used? 500

The total amount due is $69.99

Savings with Package A: $7.50

Savings with Package B: $10.00

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

What partnerships is your firm currently engaged in?

Answered: 1 week ago

Question

Why could the Robert Bosch approach make sense to the company?

Answered: 1 week ago