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

Solution 573647

Submitted on 4 Feb 2015 by Rishab
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

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

z = 5 ans = 18.7500

Suggested Problems

Community Treasure Hunt

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

Start Hunting!