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
Show
3 older comments
Guillaume
on 4 Feb 2015
You need more than one test case in your test suite.
Guillaume
on 4 Feb 2015
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.
Yalong Liu
on 5 Feb 2015
3.75 ?
Guillaume
on 5 Feb 2015
What! No, the correct answer is 5*.75/5 == .75
James
on 13 Feb 2015
Maybe the units are different? :-)
Ned Gulley
on 18 Feb 2015
Fixed the test suite.
Solution Comments
Show commentsProblem Recent Solvers69
Suggested Problems
-
4084 Solvers
-
3376 Solvers
-
All your base are belong to us
541 Solvers
-
Sum all integers from 1 to 2^n
15358 Solvers
-
Fahrenheit to Celsius converter
553 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!