A monthly fee is charged by an internet service provVider according on tier usage as follows: Charges Rates, in Megabit(mb) Data Usage(n), in Gigabit(gb) 0.0 5.0 Write a C++ program that uses functions and selections to estimate the fee to be paid by a subscriber based on the quantity of data used. It should be noted that the tax rate is 6%. Define global constants for the conversion rate, tiered rates, and tax rate. Here's a sample run: Enter the amount of data used (in gbs): 2.5 Enter

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
A monthly fee is charged by an internet service provider according on tier usage as follows:
Data
Charges Rates, in Megabit(mb)
Usage(n),
in Gigabit(gb)
0.0 <n<1.0
1.0 <n< 2.0
£ 0.025/mb
Excess data consumption exceeding 1.0gb is charged at £ 25.00 +
£ 0.05/mb
Excess data consumption exceeding 2.0gb is charged at £ 75.00 +
£ 0.10/mb
Excess data consumption exceeding 5.0gb is charged at £ 375.00 +
£ 0.15/mb
2.0 <n< 5.0
n> 5.0
Write a C++ program that uses functions and selections to estimate the fee to be paid by a
subscriber based on the quantity of data used. It should be noted that the tax rate is 6%.
Define global constants for the conversion rate, tiered rates, and tax rate. Here's a sample run:
Enter the amount of data used (in gbs): 2.5
Enter
* STATEMENT *
Charge (data used: 2.5 gbs)
£ 125.00
Таx (6%)
£ 7.50
Total
£ 132.50
The program's design MUST have the main (15 marks) and the FOUR (4) functions listed
below, as well as the structural chart with data flow illustrated below:
main
usage charge
charge ax
usage
charge
usage
tax
get_data
get_charge
get_tax
print_stmt
• get_data : Read input data from the keyboard
• get_charge: Process the input data and return the charge
• get_tax : Compute and return the tax
• print_stmt: Print the statement
Transcribed Image Text:A monthly fee is charged by an internet service provider according on tier usage as follows: Data Charges Rates, in Megabit(mb) Usage(n), in Gigabit(gb) 0.0 <n<1.0 1.0 <n< 2.0 £ 0.025/mb Excess data consumption exceeding 1.0gb is charged at £ 25.00 + £ 0.05/mb Excess data consumption exceeding 2.0gb is charged at £ 75.00 + £ 0.10/mb Excess data consumption exceeding 5.0gb is charged at £ 375.00 + £ 0.15/mb 2.0 <n< 5.0 n> 5.0 Write a C++ program that uses functions and selections to estimate the fee to be paid by a subscriber based on the quantity of data used. It should be noted that the tax rate is 6%. Define global constants for the conversion rate, tiered rates, and tax rate. Here's a sample run: Enter the amount of data used (in gbs): 2.5 Enter * STATEMENT * Charge (data used: 2.5 gbs) £ 125.00 Таx (6%) £ 7.50 Total £ 132.50 The program's design MUST have the main (15 marks) and the FOUR (4) functions listed below, as well as the structural chart with data flow illustrated below: main usage charge charge ax usage charge usage tax get_data get_charge get_tax print_stmt • get_data : Read input data from the keyboard • get_charge: Process the input data and return the charge • get_tax : Compute and return the tax • print_stmt: Print the statement
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education