|
1 | 1 | # Instructions
|
2 | 2 |
|
3 |
| -`Two-fer` or `2-fer` is short for two for one. One for you and one for me. |
| 3 | +Your task is to determine what you will say as you give away the extra cookie. |
4 | 4 |
|
5 |
| -Given a name, return a string with the message: |
| 5 | +If your friend likes cookies, and is named Do-yun, then you will say: |
6 | 6 |
|
7 | 7 | ```text
|
8 |
| -One for name, one for me. |
| 8 | +One for Do-yun, one for me. |
9 | 9 | ```
|
10 | 10 |
|
11 |
| -Where "name" is the given name. |
12 |
| - |
13 |
| -However, if the name is missing, return the string: |
| 11 | +If your friend doesn't like cookies, you give the cookie to the next person in line at the bakery. |
| 12 | +Since you don't know their name, you will say _you_ instead. |
14 | 13 |
|
15 | 14 | ```text
|
16 | 15 | One for you, one for me.
|
17 | 16 | ```
|
18 | 17 |
|
19 | 18 | Here are some examples:
|
20 | 19 |
|
21 |
| -| Name | String to return | |
22 |
| -| :----- | :-------------------------- | |
23 |
| -| Alice | One for Alice, one for me. | |
24 |
| -| Bob | One for Bob, one for me. | |
25 |
| -| | One for you, one for me. | |
26 |
| -| Zaphod | One for Zaphod, one for me. | |
| 20 | +|Name |Dialogue |
| 21 | +|:-------|:------------------ |
| 22 | +|Alice |One for Alice, one for me. |
| 23 | +|Bohdan |One for Bohdan, one for me. |
| 24 | +| |One for you, one for me. |
| 25 | +|Zaphod |One for Zaphod, one for me. |
0 commit comments