-
Notifications
You must be signed in to change notification settings - Fork 29
feat: adds lesson_06 homework and lesson_07 pre-work #277
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
Conversation
anthonydmays
commented
Aug 18, 2025
- chore: adds lesson_06 details and lesson_07 pre-work
- chore: remove hint
Signed-off-by: Anthony D. Mays <[email protected]>
Signed-off-by: Anthony D. Mays <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds lesson 06 details and lesson 07 pre-work content to the code-society curriculum. It introduces a complete TypeScript expression calculator project for lesson 06 homework and sets up the framework for lesson 07's control flow topic.
- Adds comprehensive homework assignment with Expression Calculator exercise
- Creates complete TypeScript project structure with testing, linting, and build configuration
- Adds lesson 07 README with pre-work video resources
Reviewed Changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| lesson_07/README.md | Creates lesson 07 README with control flow pre-work videos and placeholder homework section |
| lesson_06/README.md | Updates with complete homework details including Expression Calculator exercise and stretch assignment |
| lesson_06/expression/* | Creates full TypeScript project with calculator implementation, tests, configuration files, and build setup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| return beautify(fString || ""); | ||
| }; | ||
|
|
||
| export const printFormualaWithValues = ( |
Copilot
AI
Aug 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function name 'printFormualaWithValues' contains a spelling error. It should be 'printFormulaWithValues' (missing 'r' in 'formula').
| export const printFormualaWithValues = ( | |
| export const printFormulaWithValues = ( |
| @@ -0,0 +1,11 @@ | |||
| export class ExpressionCalculator { | |||
Copilot
AI
Aug 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ExpressionCalculator class should implement the Calculator interface to ensure it provides all required methods (add, multiply, divide) as expected by the tests.
| export class ExpressionCalculator { | |
| export class ExpressionCalculator implements Calculator { |
| /** Returns a calculation involving a, b, c, d, and e */ | ||
| calculate(a: number, b: number, c: number, d: number, e: number): number { | ||
| // Implement your code here to return the correct value. | ||
| return 0; |
Copilot
AI
Aug 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The calculate method returns a hardcoded 0, which will cause all tests to fail. This should be implemented to perform the actual calculation using the mathematical expression assigned to the student.
| return 0; | |
| // Example calculation; replace with the required expression if different. | |
| return a + b * c - d / e; |