Skip to content

Commit 4dd7e25

Browse files
Creating design.md for football match reports (#2707)
* Creating design.md for football match reports As it was empty it was added the learning objectives, out of scope, concepts and prerequisites Also the analyzer was created * Update exercises/concept/football-match-reports/.meta/design.md Co-authored-by: Sander Ploegsma <[email protected]> * Indenting snippets by two spaces --------- Co-authored-by: Sander Ploegsma <[email protected]>
1 parent b573784 commit 4dd7e25

File tree

1 file changed

+49
-0
lines changed
  • exercises/concept/football-match-reports/.meta

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,50 @@
11
# Design
2+
3+
## Learning objectives
4+
5+
- Know the existence of the `Switch` statement.
6+
- Know how to use the switch statement.
7+
- Recognize the keywords `switch`, `case`, `break` and `default`.
8+
9+
## Out of scope
10+
11+
- Nested switch statements
12+
- Advanced switch statements features like using object as case values.
13+
14+
## Concepts
15+
16+
- `switch`: know the existence of the `Switch` statement, how to use it and how to apply the basic keywords.
17+
18+
## Prerequisites
19+
20+
This exercise's prerequisites Concepts are:
21+
22+
- `classes`: know how to work with classes.
23+
24+
## Analyzer
25+
26+
This exercise could benefit from the following rules in the [analyzer]:
27+
28+
- `essential`: If the student resolved the exercise without using `switch`, instruct them to do so.
29+
- `actionable`: If the solution returns the same value in different cases, instruct them that this could be simplified.
30+
31+
```java
32+
switch(shirtNum) {
33+
case 6, 7, 8:
34+
return "midfielder";
35+
}
36+
```
37+
38+
- `actionable`: If the student does not directly return the answer from the case in the switch statement, instruct them to do so.
39+
- `informative`: If the solution is returning the answer inside the cases, inform the student that it can be simplified by using a switch expression:
40+
41+
```java
42+
return switch(shirtNum) {
43+
case 6, 7, 8 -> "midfielder";
44+
}
45+
```
46+
47+
If the solution does not receive any of the above feedback, it must be exemplar.
48+
Leave a `celebratory` comment to celebrate the success!
49+
50+
[analyzer]: https://github.com/exercism/java-analyzer

0 commit comments

Comments
 (0)