subject

Lab4D: Water company (Extra Credit 10pts) Imagine a water company that bases their rates on how much water a household uses. The more water that the household uses, the higher your rate per gallon will be. For households that use less than 1,000 gallons per month, they are charged $0.15 per gallon. If a household uses more than 1,000 gallons, the water beyond the 1,000 gallons is charged at $0.25 per gallon up to 2,000 gallons. The water usage that exceeds 2,000 gallons is charged at $0.35. Write a program that asks the user to input how many gallons they used for the month and then calculates their water

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
You know the right answer?
Lab4D: Water company (Extra Credit 10pts) Imagine a water company that bases their rates on how much...
Questions
question
Mathematics, 09.03.2020 19:50
Questions on the website: 13722361