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
A​ __________ is a commonly used tool for showing how the parts of a whole are distributed.
dsp73
A. (pie chart) - correct answer
7 0
3 years ago
How many pages is 2000 words double spaced 12 font.
Anna007 [38]

Answer: 8 pages

Explanation:

4 0
2 years ago
(True/False). If the definition of an IS is the medium for recording and storing data, and disseminating information, this would
irga5000 [103]

Answer:

False

Explanation:

From a structural perspective, the definition of an Information System entails a collection of individuals, data, processes, technology, models, and in some cases formalized language, coming together to form a structure that is cohesive in nature and serves some function or purpose in an organization. If the definition of an IS is the medium for recording and storing data, and disseminating information, this would be an IS from a functional perspective and not structural.

6 0
4 years ago
Read 2 more answers
All users at your site are using the Bash shell. You want to set a variable that will apply to every user and always have the sa
podryga [215]

Explanation:

I assume you are on a single host.

To modify the .bashrc for all NEW users, you can edit/modify (with su privilege) the file

/etc/skel/.bashrc

save the file before creating new users.

Be sure to know what you're doing, and test the file before you use it host-wide.

For existing users, you can have them do the modifications/additions individually in case they have already modified their own version.

4 0
3 years ago
Spoken word and written text are different because?
Dahasolnce [82]
There are several differences between spoken words and written texts, among these differences are the following:
1- Spoken words have tones that show the feelings of the speaker, whereas, the written text is expressionless.
2- Spoken works might have inaccurate grammar or sentence structure, whereas, the written text has correct syntax and perfect grammar
3- Written text has a sort of a standard form that can be understood by anyone who speaks the language that the text is written in, regardless the dialect or the accent.
6 0
3 years ago
Read 2 more answers
Other questions:
  • Where is the insert function button found in microsoft excel?
    11·1 answer
  • Together, what do the divisions of the DHSMV do?
    12·1 answer
  • Somebody who is good at this stuff, please halp meh ;-;
    6·1 answer
  • Write four overloaded methods called randomize. Each method will return a random number based on the parameters that it receives
    5·2 answers
  • The CMS Quarterly Provider Update (QPU) is an online CMS publication that contains information about __________ currently under
    14·1 answer
  • Write a program to read 10 integers from an input file and output the average, minimum, and maximum of those numbers to an outpu
    14·1 answer
  • Attribute variables have the same meaning as participants variables. is this true or false?​
    14·1 answer
  • For each obstacle, select the best solution. failing to find other members for a club: failing a class: failing to get the credi
    9·2 answers
  • Select the statements that are true regarding IP addresses. Check All That Apply assigned to your home network by your ISPassign
    13·1 answer
  • The data source in the document which has the information common to all documents. True or false 
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!