The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 5 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
i would like you to solve this question with the explanation
Â
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 hours are $2.00 per hour.
Package B:Â For $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.
Package C:Â For $19.95 per month unlimited access is provided.
Write a program that calculates a customer’s monthly bill. It should input customer name, which package the customer has purchased, and how many hours were used. It should then create a bill that includes the input information and the total amount due. The bill should be written to a file.
Input Validation:Â Be sure the user only selects package A, B, or C. Also, the number of hours used in a month cannot exceed 744.
-----------