Skip to content

Commit 11dab2b

Browse files
authored
Update instructions.md (#894)
Add tasks 3 and 4 to `instructions.md`
1 parent b9d2549 commit 11dab2b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

exercises/concept/high-school-sweetheart/.docs/instructions.md

+22
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,25 @@ Make sure to reuse `cleanupname` that you defined in the previous step and compo
2727
julia> firstletter("Jane")
2828
"J"
2929
```
30+
31+
## 3. Format the first letter as an initial
32+
33+
Implement the `initial` method.
34+
It should take a name and return its first letter, uppercase, followed by a dot.
35+
Make sure to reuse `firstletter` that you defined in the previous step.
36+
37+
```julia-repl
38+
initial("Robert")
39+
"R."
40+
```
41+
42+
## 4. Put the initials inside of the heart
43+
44+
Implement the `couple` method.
45+
It should take two names and return the initials with emoji hearts around.
46+
Make sure to reuse `initial` that you defined in the previous step.
47+
48+
```julia-repl
49+
couple("Blake Miller", "Riley Lewis")
50+
"❤ B. + R. ❤"
51+
```

0 commit comments

Comments
 (0)