1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
EleoNora [17]
4 years ago
5

Write a program that prompts the user for their quarterly water bill for the last four quarters. The program should find and out

put 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.
Computers and Technology
1 answer:
Fed [463]4 years ago
4 0

Answer:

total = 0

for i in range(4):

   bill = float(input("Enter bill for quarter " + str(i+1) + ": "))

   total += bill

average = total / (4 * 3)

if average > 75:

   print("Average monthly bill is $" + str(average) + ". Too much water is being used")

if 25 <= average < 75:

   print("Average monthly bill is $" + str(average) + ". A typical amount of water is being used")

if average < 25:

   print("Average monthly bill is $" + str(average) + ". Thank you for conserving water")

Explanation:

*The code is in Python.

Create a for loop that asks the user to enter the bill for 4 quarters and calculate the total of the bills

Calculate the average monthly bill, divide the total by 12

Check the average for the given conditions. Depending on its value print the required message along with the average monthly bill

You might be interested in
Why is wearable technology important?
BaLLatris [955]
If you are in war, Wearable Technology would provide Night Vision which would spot Hostile Soldiers in forests or in the dark.
8 0
3 years ago
Privilege escalation is an​
olga55 [171]

Answer:

Privilege escalation is the act of exploiting a bug, design flaw or configuration oversight in an operating system or software application to gain elevated access to resources that are normally protected from an application or user.

Explanation:

give brainiest plzlz

7 0
3 years ago
What are the two types of requirements for computer games?
Marta_Voda [28]
B. Minimum and recommend
6 0
4 years ago
A Class B network needs to be subnetted such that it supports 100 subnets and 100 hosts/ subnet. Which of the following answers
zmey [24]

Answer:

The answer to this question is option "B".

Explanation:

In the given question options B and C are correct because class B uses a network, subnet, and host bits that must be equal to the sum of 32 bits. In both options the total bits are equal to 32 bits, a class needs 7 subnet bits at any rate for supports 100 subnets. and other options are not correct that can be defined as:

  • In option, a network, subnet and host bits are not equal to 32 bit because class needs 32 bits. that's why it is wrong.
  • In option, d network bits are 8 it is incorrect because query tells a Class B is a network that uses the number of network bits is equal to 16 bits.

7 0
3 years ago
How do you recognize substances that have gone through physical or chemical changes?
Leviafan [203]
Normally  you can't.   You cannot tell if water has been frozen and then thawed.
7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the full meaning of ICT
    14·2 answers
  • What type of engine is common on boats designed for shallow water?
    13·1 answer
  • ___________ is the ability of a product to satisfy a customer.
    11·1 answer
  • Which of the following terms is computed as cash provided by operations less capital expenditures and cash dividends? A : adjust
    5·1 answer
  • Hide Time Remaining A
    11·1 answer
  • Which of the following BEST describes Computer Science (CS)?
    8·1 answer
  • 0 -10°
    12·1 answer
  • Pls help me thx would really help me
    9·2 answers
  • Assume you use Bubble Sort to sort a list with 15 elements (i.e.n= 9). Exactly howmany comparisons do you use (in the worst case
    10·1 answer
  • What is the name of the computer that access shared resources on the network<br><br>​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!