Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions