Question

Write the Algorithm and Draw the flowchart for the following problem The city of Mr. Pleasant...

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

Homework Answers

Answer #1

ANSWER:

  • I have provided the properly explained stepwise solution in the below handwritten notes.
  • Have a nice and healthy day!!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions