Question: C++ LANGUAGE PLEASE GIVE SOURCE CODE CPP FILE AND LINE DOC EXPLAINING WHATS HAPPENING A cell phone provider has three different subscription packages for its

C++ LANGUAGE PLEASE GIVE SOURCE CODE CPP FILE AND LINE DOC EXPLAINING WHATS HAPPENING
A cell phone provider has three different subscription packages for its customers:
Package A: The monthly cost is $29.99 and there are 300 available minutes as part of the package for each month. Any additional minutes are $0.32 per minute.
Package B: The monthly cost is $49.99 and there are 750 available minutes as part of the package for each month. Any additional minutes are $0.28 per minute.
Package C: The monthly cost is $59.99 and there are an unlimited number of available minutes.
For this assignment, write a program that will calculate a single monthly bill for a customer.
Basic Program Logic
Prompt the customer for the package that they subscribe to for the month. This is a character value and the possible values are 'A', 'B', or 'C'. For this assignment, assume that the customer will enter a valid subscription package.
Prompt the customer for the number of minutes that they used during the month. This is an integer value that should be 0 or positive. If the customer enters an invalid value, display an error message and get another value from the customer. For this assignment, assume that the customer will enter a valid number of minutes the second time.
Based on the package and number of minutes used during the month, calculate and display the monthly bill amount for the customer.
Program Requirements
The calculated bill amount should be displayed with exactly 2 digits after the decimal point and a leading dollar sign.
Output
Run 1
Which package do you have (A, B, or C)? A
How many minutes were used this month? 275
The bill is $29.99
Run 2
Which package do you have (A, B, or C)? A
How many minutes were used this month? 582
The bill is $120.23
Run 3
Which package do you have (A, B, or C)? B
How many minutes were used this month? 651
The bill is $49.99
Run 4
Which package do you have (A, B, or C)? B
How many minutes were used this month? 900
The bill is $91.99
Run 5
Which package do you have (A, B, or C)? C
How many minutes were used this month? 1478
The bill is $59.99
Run 6
Which package do you have (A, B, or C)? C
How many minutes were used this month? 540
The bill amount is $59.99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!