Skip to content

Add the vehicle-purchase concept exercise for conditionals - #988

Merged
glennj merged 2 commits into
exercism:mainfrom
glennj:concept-exercise-vehicle-purchase
Nov 30, 2026
Merged

glennj merged 2 commits into
exercism:mainfrom
glennj:concept-exercise-vehicle-purchase

Conversation

@glennj

@glennj glennj commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Adds the vehicle-purchase concept exercise (wip), forked from the jq track, where students write a script that checks whether a vehicle needs a license, chooses between two vehicles, and estimates a used price.
It practices if/elif/else, [[ ]] string comparisons and (( )) arithmetic conditionals.

Also updates the concept documents:

  • Move the arithmetic conditional from the arithmetic concept into the conditionals concept. The arithmetic concept keeps (( )) as a standalone command and links to the moved section.
  • Explain string comparison with ==, including the effect of quoting the right-hand side.
  • Add a note on putting ; then on the same line as if and elif, and reformat the examples to match.

Updates the concept exercise road map.

🤖 Generated with Claude Code

Move the arithmetic conditional from the arithmetic concept into the
conditionals concept, which the exercise teaches in its third task.
In the conditionals concept, also explain string comparison with `==`
and add a note on the style of putting `then` on the same line.

Update the concept exercise road map.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@glennj glennj added x:action/create Work on something from scratch x:module/concept Work on Concepts x:module/concept-exercise Work on Concept Exercises x:type/content Work on content (e.g. exercises, concepts) x:size/large Large amount of work labels Nov 30, 2026
@glennj
glennj requested a review from a team November 30, 2026 20:01
Comment thread concepts/arithmetic/about.md Resolved
Comment thread concepts/arithmetic/about.md Resolved
Comment thread concepts/conditionals/about.md Resolved
Comment thread concepts/conditionals/about.md Resolved
Comment thread config.json Resolved
- List the common arithmetic operators in the arithmetic concept.
- Format command names in the conditionals headings as code, and note
  there that `[[` is preferred over `[` and `test`.
- Write "bash" in lowercase within sentences and headings.
- Show the command with its output in the task examples.

Co-Authored-By: Isaac Good <IsaacG@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@glennj glennj added the ready-to-translate The English in this PR is final; queue its translations label Nov 30, 2026
exercism-i18n Bot added a commit to exercism/i18n that referenced this pull request Nov 30, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@exercism-i18n

exercism-i18n Bot commented Nov 30, 2026

Copy link
Copy Markdown

This PR has been translated 🚀

@glennj
glennj merged commit c8fd547 into exercism:main Nov 30, 2026
12 of 13 checks passed
@glennj
glennj deleted the concept-exercise-vehicle-purchase branch December 2, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-translate The English in this PR is final; queue its translations x:action/create Work on something from scratch x:module/concept Work on Concepts x:module/concept-exercise Work on Concept Exercises x:size/large Large amount of work x:type/content Work on content (e.g. exercises, concepts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants