Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task numbers to headings in concept exercises #188

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/concept/grade-stats/.docs/hints.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Hints

## Translate a numeric grade to a letter grade
## 1. Translate a numeric grade to a letter grade

- Use an [`if-then-else` expression][jq-man-if] with as many `elif` branches as needed.

## Count the number of students for each letter grade
## 2. Count the number of students for each letter grade

- The `reduce` filter needs a _stream_ to iterate over.
The input is an object.
Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/grade-stats/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ You are a teacher.
At the end of the year, you have generated a numeric grade for each of your students.
Now you need to translate that to a letter grade and count how many students have achieved each letter grade

## Translate a numeric grade to a letter grade
## 1. Translate a numeric grade to a letter grade

The `letter_grade` function will take a numeric grade as input, and it will output the letter.
Use these ranges:
Expand All @@ -23,7 +23,7 @@ Example:
75 | letter_grade # => "C"
```

## Count the number of students for each letter grade
## 2. Count the number of students for each letter grade

The function `count_letter_grades` will take an object mapping student names to their grades.
The output will be an object mapping each letter grade to the number of students with that grade.
Expand Down
12 changes: 6 additions & 6 deletions exercises/concept/regular-chatbot/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You have been hired as a Regular Expression Specialist in a company that is deve
It is in a very basic phase of development.
Your mission is to use Regular Expressions to improve the Chatbot's ability to understand and generate natural language.

## Check Valid Command
## 1. Check Valid Command

Apart from being smart, the Chatbot is also a loyal assistant.
To ask the Chatbot something, the user must say the word "**Chatbot**" in the first position of the command.
Expand All @@ -23,7 +23,7 @@ Implement the function `is_valid_command` that helps the Chatbot recognize when
# => true
```

## Remove Encrypted Emojis
## 2. Remove Encrypted Emojis

The Chatbot has a difficult time understanding how humans use emojis to express their emotions.
When the Chatbot receives user messages, each emoji is represented as the string "emoji" followed by an _id number_.
Expand All @@ -39,7 +39,7 @@ Do not adjust the whitespace.
# => "I love playing videogames it's one of my hobbies"
```

## Check Valid Phone Number
## 3. Check Valid Phone Number

At some point in the interaction with the Chatbot, the user will provide a phone number.
The Chatbot can only call a number with a specific format.
Expand All @@ -58,7 +58,7 @@ The expected format is `(+NN) NNN-NNN-NNN`, where N is a digit.
# => "Oops, it seems like I can't reach out to 659-771-594."
```

## Get Website Link
## 4. Get Website Link

The Chatbot is a really curious software.
Even though it can search the internet for a particular topic, it likes to ask users about cool websites to visit to find relevant information.
Expand All @@ -76,7 +76,7 @@ Implement the function `get_domains` which returns an array of website domains.
# => ["exercism.org", "google.com"]
```

## Greet the User
## 5. Greet the User

A polite Chatbot will speak to users by name.
When a user introduces themselves, our Chatbot will detect their name and respond with a friendly greeting.
Expand All @@ -90,7 +90,7 @@ If the input string contains "My name is Someone.", capture the name and return
# => "Nice to meet you, Jean-Luc"
```

## Very Simple CSV Parsing
## 6. Very Simple CSV Parsing

Yielding to "creeping featuritis", we'll add a CSV parsing function to the Chatbot.

Expand Down