subject

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Why is a multiview sketch drawinf different from other sketches like isometric, two point, and oblique
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
He computer component that disperses heat from the microprocessor to the cooling fan is a cooler thermometer heat sink
Answers: 1
You know the right answer?
Write a program to read data stored in "water. txt", which was created in problem 1. calculate water...
Questions
question
Mathematics, 23.10.2020 01:01
question
Mathematics, 23.10.2020 01:01
question
Medicine, 23.10.2020 01:01
question
Mathematics, 23.10.2020 01:01
question
Mathematics, 23.10.2020 01:01
question
History, 23.10.2020 01:01
Questions on the website: 13722364