DOMESTIC WATER TARIFF (TARIFF1) Minimum Charge $2.50 per month First 20,000 litres $0.22 per 1,000 litres More than 20,000 litres to 40,000 litres $0.46 per 1,000 litres More than 40,000 litres to...








































DOMESTIC WATER TARIFF (TARIFF1)

Minimum Charge

$2.50 per month
First 20,000 litres$0.22 per 1,000 litres
More than 20,000 litres to 40,000 litres$0.46 per 1,000 litres
More than 40,000 litres to 60,000 litres$0.68 per 1,000 litres
More than 60,000 litres to 200,000 litres$1.17 per 1,000 litres
More than 200,000 litres$1.30 per 1,000 litres
WATER CONSERVATION SURCHARGE (WCS)
Consumption above 35,000 litres per month$0.48 per 1,000 litres

Write aC program to calculate the water rates according to the table below:


An example of the output interface (based on the domestic rates ):


sample output:



Prepared by Name and ID: 45678<br>Class: 4SPG1<br>This program calculates the monthly water bill for you.<br>Please key in the water consumption for this month (in m^3): -10<br>Wrong! Can't be negative value! Key in again!<br>Please key in the water consumption for this month (in m^3): 10<br>You need to pay for<br>Thanks for using my program.<br>Press any key to continue...<br>$2.50 for this month<br>

Extracted text: Prepared by Name and ID: 45678 Class: 4SPG1 This program calculates the monthly water bill for you. Please key in the water consumption for this month (in m^3): -10 Wrong! Can't be negative value! Key in again! Please key in the water consumption for this month (in m^3): 10 You need to pay for Thanks for using my program. Press any key to continue... $2.50 for this month

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here