Question
Write a program that prompts the user for their quarterly water bill for the last four quarters. The program should find and output their average
Write a program that prompts the user for their quarterly water bill for the last four quarters. The program should find and output their average monthly water bill. If the average bill exceeds $75, the output should include a message indicating that too much water is being used. If the average bill is at least $25 but no more than $75, the output should indicate that a typical amount of water is being used. Finally, if the average bill is less than $25, the output should contain a message praising the user for conserving water. Use the sample run below as a model for your output. Rate is $0.08333 per gallon. Sample Run: Please input your water use in gallons for quarter 1: 300 Please input your water use in gallons for quarter 2: 200 Please input your water use in gallons for quarter 3: 225 Please input your water use in gallons for quarter 4: 275 Your average monthly bill is $83.33. You are using excessive amounts of water
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started