Problem 2938. How long does it take to run a bath?
Given the volume flow rate (volume/time) of a faucet and the volume of a bath tub, find the amount of time it takes to fill the tub 3/4 of the way.
Have z as the volume flow rate, and x as the volume of the tub.
Solution Stats
Problem Comments
-
6 Comments
You need more than one test case in your test suite.
Not to mention that the solution to the one test case is wrong. If q (volume flow rate) = v/t (volume/time), then t = v/q, not v*q.
3.75 ?
What! No, the correct answer is 5*.75/5 == .75
Maybe the units are different? :-)
Fixed the test suite.
Solution Comments
Show commentsProblem Recent Solvers69
Suggested Problems
-
2505 Solvers
-
Volume of a sphere given its surface area
149 Solvers
-
Matlab Basics II - Count rows in a matrix
377 Solvers
-
Matlab Basics II - Log and natural log
182 Solvers
-
Create sequnce 1 4 9 16 25.........
328 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!