Skip to content

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 2 | Structuring and Testing Data#1125

Open
Richiealx wants to merge 17 commits intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-2
Open

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 2 | Structuring and Testing Data#1125
Richiealx wants to merge 17 commits intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-2

Conversation

@Richiealx
Copy link

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

Completed Sprint 2 coursework:

  • 1-key-errors: predicted errors, ran each file, fixed issues, and documented explanations in Sprint-2/1-key-errors/answers.md
  • 2-mandatory-debug: explained incorrect behaviour, fixed the code, and confirmed outputs are correct
  • 3-mandatory-implement: implemented required functions and tested with multiple inputs
  • 4-mandatory-interpret: traced program flow and answered the questions in the file
  • 5-stretch-extend: added extra tests (edge cases) and fixed bugs found

@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 2, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and explanation look good.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 6, 2026
@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 7, 2026
Comment on lines +18 to +20
const bmi = weight / (height * height);
return Number(bmi.toFixed(1));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is off. Can you fix it?

Consider install prettier VSCode extension and enable formatting on save/paste on VSCode
as recommended in
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cjyuan,

Thanks for the feedback.

I have installed the Prettier VS Code extension and enabled format on save as recommended in the repository guidelines. I reformatted the files and pushed the updated changes to the branch.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 7, 2026
@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 7, 2026
@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 7, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 7, 2026

Changes look good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants