Cody

# Problem 44618. surface areas of a cylinder

Solution 1683164

Submitted on 29 Nov 2018
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
optn=1; r=3; h=6; y_correct = 36*pi; assert(isequal(surface_area_cyl(optn,r,h),y_correct))

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution Line: 5 Column: 21 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.