Repository navigation
Unit 2 lessons: 2.5 Compound Boolean Expressions, 2.6 Comparing Boolean Expressions, 2.9 Implementing Selection and Iteration Algorithms - #88
Open
svaka2000 wants to merge 4 commits into
Conversation
Fills in the Unit 2.5 lesson stub. Lesson written by Tarun. Covers combining boolean expressions with &&, || and !, operator precedence, range checks and either-or checks, with a popcorn hack and a homework hack plus grading rubric. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Fills in the Unit 2.6 lesson stub. Lesson written by Akshaj Gurugubelli. Covers truth tables, expression equivalence, De Morgan's Laws and short-circuit evaluation, with a popcorn hack and a homework hack plus grading rubric. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Fills in the Unit 2.9 lesson stub. Lesson written by Samarth Vaka. Covers the three-part shape shared by every selection-and-iteration algorithm (initialize before the loop, decide inside it, report after) and the four standard algorithms: accumulate, count, min/max, and any/all flags. Includes the integer-division trap when computing an average, and a maximum seeded with 0 that silently returns a value absent from the data. Sets codemirror: true and uses CODE_RUNNER markers so the intro example and both hacks are editable and runnable in the browser. All Java cells compile under JDK 17 and print the values asserted in the rubric. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sets assignment: true, which makes the layout render the real submission UI (lesson-assignment-meta.html and lesson-submission-form.html) with link and file upload options, plus the assignment badge and a link to the submissions dashboard. Removes the hand-written Submit Assignment section, which would otherwise leave the page with two "Submit Assignment" headings and a placeholder where the platform form belongs. Its separator goes with it so section 5 and Resources are divided by one rule, not two. Adds unit: 2 and chapter: 9 so the submission form's dropdowns preselect the right course position and the submissions dashboard groups the lesson under Unit 2 instead of an undifferentiated list. Those values match _data/csa_units.yml, where 2.9 is Implementing Selection and Iteration Algorithms. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fills in three Unit 2 lesson stubs under
_projects/lessons/java/notebooks/.Each lesson follows the sprint lesson structure: LxD cycle process, lesson plan with a tech talk and simple/intermediate/complex code examples, popcorn and homework hacks, a grading plan with a rubric and validation checklist, and revision evidence.
2.5 Compound Boolean Expressions
Combining expressions with
&&,||and!; operator precedence; range checks and either-or checks; using parentheses to make grouping explicit.2.6 Comparing Boolean Expressions
Truth tables, expression equivalence, De Morgan's Laws, and short-circuit evaluation.
2.9 Implementing Selection and Iteration Algorithms
The three-part shape shared by every selection-and-iteration algorithm — initialize before the loop, decide inside it, report after it — and the four standard algorithms: accumulate, count, minimum/maximum, and any/all flags. Also covers the integer-division trap when computing an average, and a maximum seeded with
0that silently returns a value absent from the data.Sets
codemirror: trueand usesCODE_RUNNERmarkers so the intro example and both hacks are editable and runnable in the browser. All Java cells compile under JDK 17 and print the values asserted in the rubric.It also sets
assignment: trueso the layout renders the real submission UI rather than a hand-written section, withunit: 2andchapter: 9so the form's dropdowns preselect the right course position and the submissions dashboard groups the lesson under Unit 2. Those values match_data/csa_units.yml.Notes
codemirror: truefor its runners andassignment: true/unit/chapterfor the submission flow; 2.5 and 2.6 are unchanged from their stubs.scripts/convert_notebooks.py.