Cody

Solution 2309603

Submitted on 20 May 2020
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   Fail
x = 2; y_correct = 12.57; assert(isequal(crcl_area(x),y_correct))

Undefined function 'roundn' for input arguments of type 'double'. Error in crcl_area (line 3) y = roundn(y,-2); Error in Test1 (line 3) assert(isequal(crcl_area(x),y_correct))

2   Fail
x = 12; y_correct = 452.39; assert(abs(y_correct-crcl_area(x)) <= 0.01)

Undefined function 'roundn' for input arguments of type 'double'. Error in crcl_area (line 3) y = roundn(y,-2); Error in Test2 (line 3) assert(abs(y_correct-crcl_area(x)) <= 0.01)

Suggested Problems

More from this Author3