Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Processing: Compute the amount of the monthly bill according to the plan scripions above Programming Assignment #3 Celular Data Plan Charges Additionaly, it the customer

image text in transcribed

Processing: Compute the amount of the monthly bill according to the plan scripions above Programming Assignment #3 Celular Data Plan Charges Additionaly, it the customer was on plan A or B and was automatically moved to plan B or G, output a message indicating this fact Output: Display the amount of the monthly bll with a dollar sign and formatted to 2 dedmal places. If the customer was moved to ancther plan, output a message (this message may come before or after the amount) Here are 5 dfferent sampie executions of the program Data Plansi A. The 1 gigabyte plan si0) 8- The 5 gigabyte plan 1$25) c, i gigabyte plan is40+} Enter 'tien data plan the eus toeer subeerl bea te. Enter the anount of data used during the nonth, in gigabytes: 0.75 Problem r have been asked by acelphone service proidertonte a program that will cakculate the amcunt of the data portion of a austomer's monthly bill. Wite a Ce program that will cakulate the amount of the bill given which data plan the customer subscribes to and how many gigabytes of data they used during the month the amount due for the aonth is $10.00 The celluar service provider offlers the following data plans: Data Plans A. The 1 gigabyte pian ($10) s. The 5 gigabyte plan (25) Package A: 1 gigabyte for $10/month Package B: 5 gigabytes for $25/month. Package C 10 gigabytes for $AC/month. $5 for each extra GB used Entaz which data Plan the castaner Ruascribea ta: Enter the anount of data used furing the soath, is gigabytes: Ncte: I a user goes over their plan's Imit of data during the month, they will be automaticaly upgraded to a plan that covers the amount that they used (and be charged the new plan's rate). If a user goes over the 10 gigabyte Imit for Package C they are charged an addrional $$.00 for each extra gigabyte used. Ton b ve been switched to plan C The mount due for the month $40.00 Data Pana Input: Use the following menu to prompt the user for the customer's data plan: The 1 igabyte pian 1510) The gigabyte pian 525) C. The 10 gigabyte plan (S40+) Enter vhich data pia the custorer "uteeribes to! the sount of data ueed during the sonth, in gigabytes: 3.75 Data Plans A. The 1 gigabyte plan ($10) B. The 5 gigabyte plan ($25) C. The 10 gigabyte plan ($40.) Enter vhich data plan the customer subacribes to Ehm nmount doe for the month ss $25.0 Data Pans1 Ai The 1 gigabyte plan ($10) E T 5 gigabyte plan (6253 Then the program should ask the user to input the number of gigabytes used in the month. This value could have fractional amounts induded (ike 2.875) nter vhich data plas the custoner subscribes to: C Enter the anount of data used during the sonth, in gigabytest 4.2 For both inputs, use an if statement to perform input velidation. The user should select crly A, B, or C from the mena, and the gigabytes should be greater than or equal to 0. If ether input is invalid, the anogram shouild.et with anapcropriate.emoc message the an t due for the month i, S10.00 Data Planst A.The1 gigabyte pian ($10) B-The 5 gigabyte plan ($25) The 10 gigabyte plan ($40+) Enter the amountf data used during the month, in gigabytes r10.5 You have been switched to plan c Enter which data plan the customer subscribes to B The amount due for the month is $42.5o Additional Requirements: Your program must compile and run, otherwise you will receive a o Do NOT use ANY LOOPS! The program should compute one bill only. Style: See the Style Guidelines document on the course website. The grader will deduct points if your program violates the style guidelines. Use named constants for all numeric literals (char literals are permitted). Make sure your code is indented neatly (see the book for good examples: all statements inside of an if or else branch should be indented)

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

Students also viewed these Databases questions

Question

What value is required to complete the square?

Answered: 1 week ago

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago