Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3.20 (LAB) Water Drainage (Python 3) (Loops) If you don't know how many times a loop will operate, then you will want to use a
3.20 (LAB) Water Drainage (Python 3) (Loops) If you don't know how many times a loop will operate, then you will want to use a while loop A grate on the roadway can only drain a set amount of water. Each grate can take 10% of the water flowing by or 5 gallons, whichever is greater. We want to calculate how many of these grates it takes to remove water from the roadway. (4 pts) How many gallons of water : 100 After grate 1 there are 90.0 of water left After grate 2 there are 81.0 of water left After grate 3 there are 72.9 of water left After grate 4 there are 65.61 of water left After grate 5 there are 59.049 of water left After grate 6 there are 53.1441 of water left After grate 7 there are 47.82969 of water left After grate 8 there are 42.82969 of water left After grate 9 there are 37.82969 of water left After grate 10 there are 32.82969 of water left After grate 11 there are 27.82969 of water left After grate 12 there are 22.82969 of water left After grate 13 there are 17.82969 of water left After grate 14 there are 12.82969 of water left After grate 15 there are 7.829689999999999 of water left After grate 16 there are 2.8296899999999994 of water left After grate 17 there are 0.0 of water left It took 17 grates to absorb the 100 gallons
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started