Cody

Problem 44660. Perimeter of a semicircle

Solution 2825616

Submitted on 12 Aug 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
d = 20; y_correct = 20+(10*pi); assert(isequal(perm_semicircle(d),y_correct))

Unrecognized function or variable 'y'. Error in perm_semicircle (line 2) d=y*pi; Error in Test1 (line 3) assert(isequal(perm_semicircle(d),y_correct))

2   Fail
d = 100; y_correct = 100+(50*pi); assert(isequal(perm_semicircle(d),y_correct))

Unrecognized function or variable 'y'. Error in perm_semicircle (line 2) d=y*pi; Error in Test2 (line 3) assert(isequal(perm_semicircle(d),y_correct))

Suggested Problems

More from this Author29