Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem You have been asked by a cell phone service provider to write a program that will calculate the amount of the talk portion of

image text in transcribed
Problem You have been asked by a cell phone service provider to write a program that will calculate the amount of the "talk" portion of a customer's monthly cell phone bill. Write a C++ program that will calculate the amount of the bill given which talk plan the customer subscribes to and how many voice minutes they used during the month. The cell phone service provider offers the following talk plans: Package A: 100 minutes for $10. .25/minute for each additional minute. Package B: 250 minutes for $15 Package C: 1500 minutes for $20. Package D: Unlimited minutes for $30. Note: If a user is on package B and uses more than 250 minutes, they are automatically moved to package C. If a user is on package B or C and uses more than 1500 minutes, they are automatically moved to package D. Input: Use the following menu to prompt the user for the customer's cell phone plan: Talk Plans A. The 100 ninute plan B. The 250 minute plan C. The 1500 minute plan D. The unlimited plan Enter which talk plan the eustomer subscribes tos Then ask the user to input the number of voice minutes used in the month. For both inputs, use an if statement to perform input validation. The user should select only A, B, C, or D from the menu, and the minutes should be between 0 and 44640 (inclusive). If their input is invalid, ask them to enter the value again. Processing: Compute the amount of the monthbill according to the plan descriptions above. Additionally, if the customer was on plan B or C and was automatically moved to plan C or D, output a message indicating this fact Output: Display the amount of the monthly bill with a dollar sign and formatted to 2 decimal places. Also if the customer was moved to another plan, output a message. Here are two sample executions of the program: Talk Plans: A. The 100 ninute plarn B. The 250 minute plan c. The 1500 ninute plan D. The unlimited plan Enter which talk plan the custoner subscribes toi A Enter the total nunber of minutes used during the nonthi 200 The anount due for the month is $35.00 Talk Plansi A. The 100 minute plan B. The 250 minute plan c. The 1500 minhte plan D. The unlinited plan Enter which talk pian the customer subscribes to E Please enter A B,C or D: Enter the total number of inutes used during the month, 1550 The anount due for the nonth is $30.00 You have been switched to pian D

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions