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?
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
"""
Write a program in Python to determine how many gallons of water it would take to...
python - Write a program that asks the user to enter how much their dinner bill was. Then ask them how many people were in their party. If there were more than 6 people in their party automatically calculate a 20% tip. If there were 6 or less people in their party ask them what percentage they would like to tip. In all cases, print out the total amount of the tip at the end of the program.
Task: Write functions for each container type. Prompt the end-user to enter the volume of water for the pool, then produce a report with the number needed of each container. Given a swimming pool with a specific volume of water tell me how many of each do I need to empty the pool, and if anything remains, how much? Each container has to be filled to it's maximum capacity. For example a 74 gallon pool will fill 2 garbage cans...
Write a program to determine how many months it will take to pay off a $10,000 car loan with 4% interest. Choose your own monthly payment
Write a program 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...
Write a python program to do the following: A. How many total grains of wheat did the ruler have to pay the inventor? B. A wheat grain weighs about 50mg. How much did the wheat weigh in tons (a ton is 1000 kilos)? C. If 1kilogram of wheat costs $5. How much would that wheat cost nowadays? (convert the number to billions of dollars and separate the output with commas between each thousand –for example a sample output should look...
Use python please! Thank u
5. Write a program to determine (not by counting yourself!) how many odd numbers exist between 56 and 22. (ex. There are odd numbers). Your program should not print any other numbers.
A humidifier located at a nursing station holds gallons of water. How many fluid ounces of water will completely fill the reservoir?
How many gallons of water are wasted each time a swimming pool with a length of 12.5 ft, a width of 6.8 ft and an average depth of 5.4 feet is drained?
1. Write a Python function to count how many python function definitions in a given Python program. 2. Write a Python function to return the number of word wrapped lines of given number of characters in a given text file. Inside your function you must do it in a single line of code except docstring and comments.
Please use Python for this program
Random Number File Writer Write a program that writes a series of random numbers to a file. Each random number should be in the range 1 through 500. The program should let the user specify how many random numbers to put into the file. The name of the file to write to should be 'random.txt'. Submit the random.txt file generated by your program with the assignment. Sample program execution: Python 3.4.3 Shell Eile Edit...