Cody

Solution 1724906

Submitted on 11 Feb 2019
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
[jump,slide] = ToadsFrogs2(0); assert(isequal(jump,0)&isequal(slide,0))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test1 (line 1) [jump,slide] = ToadsFrogs2(0);

2   Fail
[jump,slide] = ToadsFrogs2(1); assert(isequal(jump,4)&isequal(slide,8))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test2 (line 1) [jump,slide] = ToadsFrogs2(1);

3   Fail
[jump,slide] = ToadsFrogs2(3); assert(isequal(jump,72)&isequal(slide,48))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test3 (line 1) [jump,slide] = ToadsFrogs2(3);

4   Fail
[jump,slide] = ToadsFrogs2(7); assert(isequal(jump,784)&isequal(slide,224))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test4 (line 1) [jump,slide] = ToadsFrogs2(7);

5   Fail
[jump,slide] = ToadsFrogs2(11); assert(isequal(jump,2904)&isequal(slide,528))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test5 (line 1) [jump,slide] = ToadsFrogs2(11);

6   Fail
[jump,slide] = ToadsFrogs2(17); assert(isequal(jump,10404)&isequal(slide,1224))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test6 (line 1) [jump,slide] = ToadsFrogs2(17);

7   Fail
[jump,slide] = ToadsFrogs2(23); assert(isequal(jump,25392)&isequal(slide,2208))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test7 (line 1) [jump,slide] = ToadsFrogs2(23);

8   Fail
[jump,slide] = ToadsFrogs2(29); assert(isequal(jump,50460)&isequal(slide,3480))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test8 (line 1) [jump,slide] = ToadsFrogs2(29);

9   Fail
[jump,slide] = ToadsFrogs2(41); assert(isequal(jump,141204)&isequal(slide,6888))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test9 (line 1) [jump,slide] = ToadsFrogs2(41);

10   Fail
[jump,slide] = ToadsFrogs2(50); assert(isequal(jump,255000)&isequal(slide,10200))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test10 (line 1) [jump,slide] = ToadsFrogs2(50);

11   Fail
[jump,slide] = ToadsFrogs2(75); assert(isequal(jump,855000)&isequal(slide,22800))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test11 (line 1) [jump,slide] = ToadsFrogs2(75);

12   Fail
[jump,slide] = ToadsFrogs2(99); assert(isequal(jump,1960200)&isequal(slide,39600))

Error: File: ToadsFrogs2.m Line: 2 Column: 3 "jump" was previously used as a variable, conflicting with its use here as the name of a function or command. See "How MATLAB Recognizes Command Syntax" in the MATLAB documentation for details. Error in Test12 (line 1) [jump,slide] = ToadsFrogs2(99);