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

Write a program that prompts the user for their quarterly water bill 

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. To solve this exercise, use an accumulator (don't use four variables to save four quarterly water bills). Refer to Section 5.7 in your Textbook. Also, use a for-loop to input the user's quarterly water bill values and update the accumulator. Here's an example of execution for this program: Input your waterbill for quarter 1: 120 Input your waterbill for quarter 2: 99 Input your waterbill for quarter 3: 115 Input your waterbill for quarter 4: 122.47 Your average monthly bill is $38.04 You are using a typical amount of water!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python program that implements the described functionality pyt... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!