A mobile phone service provider has three different data plans for its customers: Package A: Package...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A mobile phone service provider has three different data plans for its customers: Package A: Package B: Package C: For 39.99 per month, 4 gigabytes are provided. Additional data costs $10 per gigabyte. For $59.99 per month, 8 gigabytes are provided. Additional data costs $5 per gigabytes. For $69.99 per month, unlimited data is provided. Write a program that calculates a customer's monthly bill. It should ask which package the customer has purchased and how many gigabytes were used. It should then display the total amount due. The total amount due should be formatted to only have two decimal places. Input Validation: Be sure the user only selects package A, B, or C. Be sure the number of gigabytes used is not a negative value. Four sample outputs are shown below. Enter your package: b Enter how many gigabytes you used: 7.63 Total Amount Due = $ 59.99 Enter your package: A Enter how many gigabytes you used: 6.35 Total Amount Due = $ 63.49 > Enter your package: F Error: Incorrect package entered Enter your package: c Enter how many gigabytes you used: -6 Error: Gigabytes used cannot be a negative value A mobile phone service provider has three different data plans for its customers: Package A: Package B: Package C: For 39.99 per month, 4 gigabytes are provided. Additional data costs $10 per gigabyte. For $59.99 per month, 8 gigabytes are provided. Additional data costs $5 per gigabytes. For $69.99 per month, unlimited data is provided. Write a program that calculates a customer's monthly bill. It should ask which package the customer has purchased and how many gigabytes were used. It should then display the total amount due. The total amount due should be formatted to only have two decimal places. Input Validation: Be sure the user only selects package A, B, or C. Be sure the number of gigabytes used is not a negative value. Four sample outputs are shown below. Enter your package: b Enter how many gigabytes you used: 7.63 Total Amount Due = $ 59.99 Enter your package: A Enter how many gigabytes you used: 6.35 Total Amount Due = $ 63.49 > Enter your package: F Error: Incorrect package entered Enter your package: c Enter how many gigabytes you used: -6 Error: Gigabytes used cannot be a negative value
Expert Answer:
Answer rating: 100% (QA)
Heres a wellstructured solution in Python incorporating input validation and clear formatting Python def calculatebill package inputEnter your package A B or C upper gigabytesused floatinputEnter how ... View the full answer
Related Book For
Holt McDougal Larson Geometry
ISBN: 9780547315171
1st Edition
Authors: Ron Larson, Laurie Boswell, Timothy D. Kanold, Lee Stiff
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
An internet Service provider Part 1 An Internet service provider has three different subscription packages for its customers Package A For $9.95 per month 10 hours of access are provided Additional...
-
In Exercises 7192, find and simplify the difference quotient f(x +h)-f(x) h -, h = 0
-
Why don't traditional department stores have the same strong appeal to younger American consumers that they once enjoyed during their heyday in the last half of the twentieth century? Discuss which...
-
Give at least three examples of how current EEOC policy reflects public policy decisions.
-
The following data have been extracted from the income statement of Chang Furniture Store. Required (a) Calculate the gross profit ratio, profit margin, and expenses to sales ratio for the years 2025...
-
Night Watch Company recently began production of a new product, the halogen light, which required the investment of $500,000 in assets. The costs of producing and selling 12,000 halogen lights are...
-
The _________ provides a portion of the system call interface for UNIX and Linux.
-
Tax Software Assignment - Fall 2023 Ms. Jeanette Letourneau (SIN 123-456-789) was born in Montreal on December 15, 1979. She has spent most of her working life a song writer but also has a part-time...
-
Travis and Alix Weber are equal partners in the Tralix Partnership, which does not have a 754 election in place. Alix sells one-half of her interest (25 percent) to Michael Tomei for $39,000 cash....
-
How does socialization influence the development of social identities, including gender, race, ethnicity, and class?
-
This question looks at how there can be more than one way to express an idea in logical notation. For this question, we will use O(r) to denote the predicate "z is odd" and E(z) to denote the...
-
how to get the cash flow table, discount rate table, PV table, and accumulated cash flow table in excel? year 0 1 2 3 4 5 6 7 K K K K K K K K TC TR K 1,502,400,000.00 K 1,502,400,000.00...
-
Step 1-Go the Investor Relation page of Valero. Review the content and find the answer the following questions (10% percent of total project grade): What was the date and description of the latest...
-
Kaelin believes that in 3 0 years he will need $ 8 0 , 0 0 0 to buy a retirement cottage . Assuming he gets an interest rate of 9 % compound annually, how much will he have to invest today to reach...
-
Labson Limited has 3 production centres (Machine centre X, Machine centre Y and an Assembly centre) and 2 service centres (Materials procurement and General manufacturing support). The annual...
-
What is the difference between the straight-line method of depreciation and the written down value method? Which method is more appropriate for reporting earnings?
-
Which postulate or theorem could you use to show that the three triangles that make up the racecar window net are similar? Explain. U A B BG CF, CF DE G E
-
Write the converse of each true statement. Tell whether the converse is true. If false, explain why. If x < 6, then -x> -6.
-
Find the value of each variable. Write your answers in simplest radical form. 30 8 X y 60
-
Satellite Radio Customers. An analyst at a subscription-based satellite radio company has been given a sample of data from their customer database, with the goal of finding groups of customers who...
-
Hair Care ProductUplift Modeling. This problem uses the dataset in Hair-CareProduct.csv, courtesy of SAS. In this hypothetical case, a promotion for a hair care product was sent to some members of a...
-
Identifying Course Combinations. The Institute for Statistics Education at Statistics.com offers online courses in statistics and analytics and is seeking information that will help in packaging and...
Study smarter with the SolutionInn App