subject

Residential and business customers are paying different rates for water usage. 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. for example, a residential customer who has used 9000 gallons will pay $30 for the first 6000 gallons ($0.005 * 6000), plus $21 for the other 3000 gallons ($0.007 * 3000). the total bill will be $51. a business customer who has used 9000 gallons will pay $48 for the first 8000 gallons ($0.006 * 8000), plus $8 for the other 1000 gallons ($0.008 * 1000). the total bill will be $56. write a program to do the following. ask the user which type the customer it is and how many gallons of water have been used. calculate and display the bill.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
You know the right answer?
Residential and business customers are paying different rates for water usage. residential customers...
Questions
question
Social Studies, 02.11.2020 21:40
Questions on the website: 13722363