Cody

Problem 2938. How long does it take to run a bath?

Solution 2133704

Submitted on 19 Feb 2020 by Rafael Hernandez-Walls
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
z = 5 x = 5; y_correct = 0.75; assert(isequal(tub(z,x),y_correct))

z = 5 ans = 0.7500

2   Pass
z = 10 x = 30; y_correct = 2.25; assert(isequal(tub(z,x),y_correct))

z = 10 ans = 2.2500

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!