Skip to content

West Midlands | 26 March SDC | Iswat Bello | Sprint 2 | jq exercises#410

Open
Iswanna wants to merge 4 commits intoCodeYourFuture:mainfrom
Iswanna:tools/sprint2-jq-exercises
Open

West Midlands | 26 March SDC | Iswat Bello | Sprint 2 | jq exercises#410
Iswanna wants to merge 4 commits intoCodeYourFuture:mainfrom
Iswanna:tools/sprint2-jq-exercises

Conversation

@Iswanna
Copy link

@Iswanna Iswanna commented Mar 21, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This pull request adds a series of Bash scripts that use jq to extract and process data from person.json and scores.json. Each script addresses a specific requirement, such as extracting names, formatting addresses, listing player stats, and calculating score totals.

Changes

  • script-01.sh: Output the person's name from person.json.
  • script-02.sh: Output the person's address as a single comma-separated line.
  • script-03.sh: Output the person's name and profession in the required format.
  • script-04.sh: Output each player's name from scores.json, one per line.
  • script-05.sh: Output each player's name and city, one per line.
  • script-06.sh: Output each player's name and their first score.
  • script-07.sh: Output each player's name and their last score.
  • script-08.sh: Output each player's name and the number of games they've played.
  • script-09.sh: Output each player's name and their total score.
  • script-10.sh: Output the sum of all players' first scores.
  • script-11.sh: Output the sum of all scores from all games and players.

Notes

  • All scripts use the -r flag with jq to ensure output is not wrapped in quotes.
  • Output formats strictly follow the requirements in each script's comments.

Please review and let me know if any changes are needed! Thank you

Iswanna added 4 commits March 19, 2026 20:26
- script-01.sh: Output the person's name without quotes.
- script-02.sh: Output the person's address as a single comma-separated line without quotes.
- script-03.sh: Output the person's name and profession in the required format.
- script-04.sh: Output each player's name on a separate line as required.
…es.json

- script-05.sh: Output each player's name and city on one line.
- script-06.sh: Output each player's name and their first score.
- script-07.sh: Output each player's name and their last score.
- script-08.sh: Output each player's name and number of games played.
- script-09.sh: Output each player's name and total score.
- script-10.sh: Output the sum of all players' first scores.
- script-11.sh: Output the sum of all scores from all games and players.
@Iswanna Iswanna added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Tools The name of the module. labels Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Tools The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant