Cody

Solution 2067785

Submitted on 23 Dec 2019 by Asif Newaz
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
optn=1; r=3; h=6; y_correct = 36*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 113.0973

2   Pass
optn=5; r=3; h=6; y_correct = 18*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 56.5487

3   Pass
optn=2; r=2; h=2; y_correct = 16*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 50.2655

4   Pass
optn=0; r=5; h=10; y_correct = 50*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 157.0796

5   Pass
optn=1; r=5; h=10; y_correct = 100*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 314.1593

6   Pass
optn=2; r=5; h=10; y_correct = 150*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 471.2389

7   Pass
optn=42; r=3; h=7; y_correct = 18*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 56.5487

8   Pass
optn=2; r=3 h=7; y_correct = 60*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

r = 3 y = 188.4956

9   Pass
optn=1; r=3; h=7; y_correct = 42*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

y = 131.9469