Answered step by step
Verified Expert Solution
Link Copied!

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
$9.99 per month for 5 hours of streaming
For 6 to 10 hours, extra charge of $5.99
For 11 to 20 hours, extra charge of $9.99
For 21 hours and up, extra charge of $ 15.99
Plus
$14.99 per month for 20 hours of streaming
For 21 to 30 hours, extra charge of $7.99
For 31 hours and up, extra charge of $ 12.99
Elite
$29.99 per month for 30 hours of streaming
For 31 to 40 hours, extra charge of $8.99
For 41 hours and up, extra charge of $ 10.99
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 1 and 720 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

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions