1. Write a program using if/else if statement that prompts the user for their qu
ID: 3639673 • Letter: 1
Question
1. Write a program using if/else if statement 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:Please input your water bill for quarter 1:
300
Please input your water bill for quarter 2:
200
Please input your water bill for quarter 3:
225
Please input your water bill for quarter 4:
275
Your average monthly bill is $83.33. You are using excessive amounts of water
Explanation / Answer
# include using namespace std; void main() { int sum=0, quarter ; float avg; coutquarter; sum=sum+quarter; coutquarter; sum=sum+quarter; coutquarter; sum=sum+quarter; coutquarter; sum=sum+quarter; avg=float(sum)/4; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.