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, 21.06.2019 22:10
Is the following an example of social media viral marketing? indicate your response by selecting yes or no. when you sign onto your favorite social networking website, you get messages from friends who have seen a television show they thought was a "must see! "
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Working on this program in python 3.7: a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 42) if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year. ex: if the input is 1913, the output is: 1913 is not a leap year. your program must define and call the function isleapyear(useryear). the function should return true if the input year is a leap year and false otherwise.
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
You know the right answer?
Residential and business customers are paying different rates for water usage. residential customers...
Questions
question
Mathematics, 04.11.2020 20:10
question
English, 04.11.2020 20:10
question
Computers and Technology, 04.11.2020 20:10
question
English, 04.11.2020 20:10