Skip to content

Commit cf45aea

Browse files
committed
Improvements according to reviews
1 parent 77f404d commit cf45aea

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

exercises/line-up/instructions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Instructions
22

3-
Given a name and a number, your task is to produce a sentence with an [ordinal numeral][ordinal-numeral] to print onto the ticket.
3+
Given a name and a number, your task is to produce a sentence using that name and that number as an [ordinal numeral][ordinal-numeral].
44
Yaʻqūb expects to use numbers from 1 up to 999.
55

66
Rules:
77

8-
- Numbers ending in 1 (except for 11) → `st`
9-
- Numbers ending in 2 (except for 12) → `nd`
10-
- Numbers ending in 3 (except for 13) → `rd`
11-
- All other numbers → `th`
8+
- Numbers ending in 1 (except for 11) → `"st"`
9+
- Numbers ending in 2 (except for 12) → `"nd"`
10+
- Numbers ending in 3 (except for 13) → `"rd"`
11+
- All other numbers → `"th"`
1212

1313
Examples:
1414

15-
- `'Mary', 1``'Mary, you are the 1st customer we serve today. Thank you!'`
16-
- `'John', 12``'John, you are the 12th customer we serve today. Thank you!'`
17-
- `'Dahir', 162``'Dahir, you are the 162nd customer we serve today. Thank you!'`
15+
- `"Mary", 1``"Mary, you are the 1st customer we serve today. Thank you!"`
16+
- `"John", 12``"John, you are the 12th customer we serve today. Thank you!"`
17+
- `"Dahir", 162``"Dahir, you are the 162nd customer we serve today. Thank you!"`
1818

1919
[ordinal-numeral]: https://en.wikipedia.org/wiki/Ordinal_numeral

exercises/line-up/introduction.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Introduction
22

33
Your friend Yaʻqūb works the counter at a deli in town, slicing, weighing, and wrapping orders for a line of hungry customers that gets longer every day.
4-
He sees that waiting customers start to loose track of who is next, so he wants to have numbered tickets for them to pick when they arrive.
4+
Waiting customers are starting to lose track of who is next, so he wants numbered tickets they can use to track the order in which they arrive.
55

6-
He is a nice person, and so he does not want to have only a number on the ticket. They shall get a proper English sentence with their name and number in it.
6+
To make the customers feel special, he does not want the ticket to have only a number on it.
7+
They shall get a proper English sentence with their name and number on it.

exercises/line-up/metadata.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
title = "Line up"
22
blurb = "Help lining up customers at Yaʻqūb's Deli."
3-
source = "Based on previous work from Exercism contributors codedge and neenjaw"
4-
source_url = "https://en.wikipedia.org/wiki/Ordinal_numeral"
3+
source = "mk-mxp, based on previous work from Exercism contributors codedge and neenjaw"
4+
source_url = "https://forum.exercism.org/t/new-exercise-ordinal-numbers/19147"

0 commit comments

Comments
 (0)