5.0On a piece of paper, write a C++ program that uses functions and selections to estimate thefee to be paid by a subscriber based on the quantity of data used. It should be noted that the taxrate...


A monthly fee is charged by an internet service provider according on tier usage as follows:<br>Data<br>Charges Rates, in Megabit(mb)<br>Usage(n),<br>in Gigabit(gb)<br>0.0 <n< 1.0<br>£ 0.025/mb<br>Excess data consumption exceeding 1.0gb is charged at £ 25.00 +<br>£ 0.05/mb<br>Excess data consumption exceeding 2.0gb is charged at £ 75.00 +<br>£ 0.10/mb<br>Excess data consumption exceeding 5.0gb is charged at £ 375.00 +<br>£ 0.15/mb<br>1.0 <n<2.0<br>2.0 <n<5.0<br>n> 5.0<br>On a piece of paper, write a C++ program that uses functions and selections to estimate the<br>fee to be paid by a subscriber based on the quantity of data used. It should be noted that the tax<br>rate is 6%. Define global constants for the conversion rate, tiered rates, and tax rate.<br>Sample run:<br>Enter the amount of data used (in gbs): 2.5<br>Enter<br>* STATEMENT *<br>Charge (data used: 2.5 gbs)<br>£ 125.00<br>Таx (6%)<br>£7.50<br>Total<br>£ 132.50<br>The program's design MUST have the main (15 marks) and the FOUR (4) functions listed<br>below, as well as the structural chart with data flow illustrated below:<br>main<br>usage<br>Ausage<br>1 charge<br>charge V tax<br>charge<br>usage<br>tax<br>get_data<br>get_charge<br>get_tax<br>print_stmt<br>get_data : Read input data from the keyboard<br>• get_charge: Process the input data and return the charge<br>• get_tax : Compute and return the tax<br>• print stmt: Print the statement<br>

Extracted 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 <>< 1.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="" 1.0=""><><2.0 2.0=""><><5.0 n=""> 5.0 On a piece of paper, 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. 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 Ausage 1 charge charge V tax 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
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here