Cody

# Problem 45369. Sky full of stars - 02

Solution 2923612

Submitted on 7 Sep 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
a= ['*********' ' ******* ' ' ***** ' ' *** ' ' * ']; assert(isequal(star_pattern_2(5,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test1 (line 6) assert(isequal(star_pattern_2(5,'t'),a))

2   Fail
a= [' * ' ' *** ' ' ***** ' ' ******* ' ' ********* ' ' *********** ' ' ************* ' ' *************** ' ' ***************** ' '*******************']; assert(isequal(star_pattern_2(10,'b'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test2 (line 11) assert(isequal(star_pattern_2(10,'b'),a))

3   Fail
a= ['*************************' ' *********************** ' ' ********************* ' ' ******************* ' ' ***************** ' ' *************** ' ' ************* ' ' *********** ' ' ********* ' ' ******* ' ' ***** ' ' *** ' ' * ']; assert(isequal(star_pattern_2(13,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test3 (line 14) assert(isequal(star_pattern_2(13,'t'),a))

4   Fail
a= ['*']; assert(isequal(star_pattern_2(1,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test4 (line 2) assert(isequal(star_pattern_2(1,'t'),a))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
The text passage contains a series of test cases for a function `star_pattern_2` that generates a pattern of stars. Each test case includes an input and an expected output, but the function fails to assign the output argument, resulting in errors.
no_question
Given a text passage, determine:
    1. If it contains a mathematical question (including word problems or calculations)
    2. If an answer to that mathematical question is provided in the text

First, describe the content structure you found in 1-2 sentences.

Then provide your analysis in the following format:
TYPE: <one of the following values>
- NO_QUESTION
- SINGLE_QUESTION
- SINGLE_QUESTION_WITH_ANSWER
- MULTIPLE_QUESTIONS
- MULTIPLE_QUESTIONS_WITH_ANSWERS
system
Cody

# Problem 45369. Sky full of stars - 02

Solution 2923612

Submitted on 7 Sep 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
a= ['*********' ' ******* ' ' ***** ' ' *** ' ' * ']; assert(isequal(star_pattern_2(5,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test1 (line 6) assert(isequal(star_pattern_2(5,'t'),a))

2   Fail
a= [' * ' ' *** ' ' ***** ' ' ******* ' ' ********* ' ' *********** ' ' ************* ' ' *************** ' ' ***************** ' '*******************']; assert(isequal(star_pattern_2(10,'b'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test2 (line 11) assert(isequal(star_pattern_2(10,'b'),a))

3   Fail
a= ['*************************' ' *********************** ' ' ********************* ' ' ******************* ' ' ***************** ' ' *************** ' ' ************* ' ' *********** ' ' ********* ' ' ******* ' ' ***** ' ' *** ' ' * ']; assert(isequal(star_pattern_2(13,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test3 (line 14) assert(isequal(star_pattern_2(13,'t'),a))

4   Fail
a= ['*']; assert(isequal(star_pattern_2(1,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test4 (line 2) assert(isequal(star_pattern_2(1,'t'),a))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
user
The text passage contains a series of test cases for a function `star_pattern_2` that generates a pattern of stars. Each test case includes an input and an expected output, but the function fails to assign the output argument, resulting in errors.

TYPE: NO_QUESTION