Question

Write a program in Python to determine how many gallons of water it would take to...

Write a program in Python to determine how many gallons of water it would take to fill your pool, or your garage (if it were perfectly rectangular; ignore curves and cutouts). How much would it cost on your water bill?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

print("Enter the detatils of rectangular container:")
l=int(input("Enter length in meter"))
b=int(input("Enter breadth in meter"))
h=int(input("Enter height in meter"))
volume=l*b*h
gallon=volume*0.26417205
cost=int(input("Enter the cost of your water bill to fill 1 gallon of water"))
print(gallon,"gallons of water it would take to fill your pool")
print("Cost of your water bill to take to fill your pool="+(str)(cost*gallon))

"""
OUTPUT:-
Enter the detatils of rectangular container:
Enter length in meter2
Enter breadth in meter3
Enter height in meter4
Enter the cost of your water bill to fill 1 gallon of water2
6.3401292 gallons of water it would take to fill your pool
Cost of your water bill to take to fill your pool=12.6802584
"""

Add a comment
Know the answer?
Add Answer to:
Write a program in Python to determine how many gallons of water it would take to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT