Question: Complete the function fill_pool, which computes and returns how many minutes it will take to completely fill a swimming pool of given dimensions. Suppose we

 Complete the function fill_pool, which computes and returns how many minutes

Complete the function fill_pool, which computes and returns how many minutes it will take to completely fill a swimming pool of given dimensions. Suppose we have a rectangular pool with a length of length meters, width of width meters, and uniform depth of depth meters. Water is flowing into the pool at a rate of gpm gallons per minute. The function returns the time in minutes to fill the pool. Note that you will need to look up some conversion factors to figure out the solution! Expected Results. Note that your answers might be a little different in the digits to the right of the decimal point. That is OK. Function Call Return Value 264.172 fill_pool(10, 10, 10, 1000) fill_pool(12, 13, 20, 3000) fill_pool(10, 40, 8, 250) 274.739 3381.404 [] def fill_pool(length, width, height, gpm): return 0 # delete this line # Test cases print(f'{fill_pool(10, 10, 10, 1000):0.3f}') print(f'{fill_pool (12, 13, 20, 3000):0.3f}') print(f'{fill_pool (10, 40, 8, 250):0.3f}')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!