Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using conditional statement, write a C + + program that will simulate an Internet Service Provider, ISP, that calculates a customer s monthly bill. The
Using conditional statement, write a C program that will simulate an Internet Service Provider, ISP, that calculates a customers monthly bill. The ISP company has three different subscription packages for its customers:
Package
Monthly cost
Extra charge
Basic
$ per month for hours of streaming
For to hours, extra charge of $
For to hours, extra charge of $
For hours and up extra charge of $
Plus
$ per month for hours of streaming
For to hours, extra charge of $
For hours and up extra charge of $
Elite
$ per month for hours of streaming
For to hours, extra charge of $
For hours and up extra charge of $
The program should ask the user to enter a customer name, which package the customer has purchased, and how many hours were used. The total number of hours must be between and hours. Any other hours, the program will not make the calculation and prompt a receipt as ZERO purchases.
At the end of the program, the program will create a bill with the following information:
INTERNET SERVICE CHARGE
Customer name
Package
Total hours used
Package charge $
Extra charge $
TOTAL $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started