Question: Try writing a program that prompts the user for their monthly water bill for the last three months. The program should find and output their
Try writing a program that prompts the user for their monthly water bill for the last three months. The program should find and output their average monthly water bill (example: $67.89). If the average bill is less than $25, the output should praise the user for conserving water. If the average bill is between $25 and $75, the output should indicate that a typical amount of water is being used. If the average bill exceeds $75, the output should indicate that too much water is being used. Style matters! Indentation (at least 4 spaces) within each block is expected. All statements within a block should be aligned. Use appropriate spacing.
Practice run: Please input your water bill for month1: 100 Please input your water bill for month 2: 66.67 Please input your water bill for month 3: 75 Your average monthly bill is $80.56 You are using too much water
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
