Cody

Problem 281. Acid and water

Solution 1293096

Submitted on 17 Oct 2017 by Reggie Wilcox
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
R=1; M=1; W=99; assert(tank(R,M)>W)

W = 99.0050

2   Pass
R=2; M=2; W=96; assert(tank(R,M)>W)

W = 96.0789

3   Pass
R=10; M=10; W=36; assert(tank(R,M)>W)

W = 36.7879

4   Pass
R=15; M=20; W=5; assert(tank(R,M)<W)

W = 4.9787

5   Pass
R=7; M=8; W=58; assert(tank(R,M)<W)

W = 57.1209

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!