Write the Algorithm and Draw the flowchart for the following problem
The city of Mr. Pleasant bills its residents for sewage, water and sanitation every three months. The sewer and water charge is figured according to how much water is used by the resident. The scale is
Amount (gallons)Rate (per gallon)
less than 1,000$0.03
1,000 to 2,000$ 30 + $0.02 for gallons over 1,000
greater than 2,000$50 + $0.015 for gallons over 2,000
The sanitation charge is $7.50 per month. The program logic should read the number of months for which a resident is being billed (1, 2 or 3) and how much water was used. After proper calculations, an output statement with appropriate charges should be printed
ANSWER:
Get Answers For Free
Most questions answered within 1 hours.