Skip to content

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
UGRC-CSA:mainfrom
svaka2000:lesson/unit-02-2.5-2.6-2.9
Open

svaka2000 wants to merge 4 commits into
UGRC-CSA:mainfrom
svaka2000:lesson/unit-02-2.5-2.6-2.9

Conversation

@svaka2000

@svaka2000 svaka2000 commented Sep 18, 2026 •

Copy link
Copy Markdown

Fills in three Unit 2 lesson stubs under _projects/lessons/java/notebooks/.

Lesson Topic Author
2.5 Compound Boolean Expressions Tarun
2.6 Comparing Boolean Expressions Akshaj Gurugubelli
2.9 Implementing Selection and Iteration Algorithms Samarth Vaka

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 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.

It also sets assignment: true so the layout renders the real submission UI rather than a hand-written section, with unit: 2 and chapter: 9 so 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

  • Only the three lesson files are touched.
  • Frontmatter follows the existing stubs. 2.9 adds codemirror: true for its runners and assignment: true / unit / chapter for the submission flow; 2.5 and 2.6 are unchanged from their stubs.
  • All three notebooks convert cleanly through scripts/convert_notebooks.py.

svaka2000 and others added 4 commits September 18, 2026 00:31
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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant