Computers and Technology

Write a program to read data stored in "water. txt", which was created in problem 1. calculate water charge for each customer. residential customers pay $0.005 per gallon for the first 6000 gallons. if the usage is more than 6000 gallons, the rate will be $0.007 per gallon after the first 6000 gallons. business customers pay $0.006 per gallon for the first 8000 gallons. if the usage is more than 8000 gallons, the rate will be $0.008 per gallon after the first 8000 gallons. display account number and water charge of each customer on computer screen.

the following is an example.

account number: 3147 water charge: $5.0
account number: 2168 water charge: $30.02
account number: 5984 water charge: $12.00
account number: 7086 water charge: $48.02

answer
Answers: 3

Similar questions

Do you know the correct answer?
Write a program to read data stored in "water. txt", which was created in problem 1. calculate water...

Questions in other subjects: