AP CSP 3.3 Exercise 2: Fix the Pizza Math

Big Idea 3 · Topic 3.3 · Exercise 2

Fix the Pizza Math

25 minutes - 5 broken expressions - name the goal, pick the operator, fix it

Back to the Topic 3.3 lessonAll CSP topics

How this page works

The writing boxes below are yours. What you type stays in this browser, is saved here as you go, and is never sent to us or to your teacher. Hand the written work in the way your teacher asked for it.

The graded check at the bottom is the part that records to your teacher's gradebook.

The cases, from your handoutNot recorded

The same cases as your handout, in the same order.

Scenario 1 · Foundational
Goal: the TOTAL number of slices from 4 pizzas cut into 8 slices each. The planner wrote: total <- 4 + 8, and got 12.

What is the goal, and which operator matches it (+, -, *, /, MOD):

The corrected expression and its single value:

Enrichment - the order-of-operations or division-type subtlety:

Scenario 2 · Core
Goal: the LEFTOVER slices when 26 slices are shared equally among 5 friends. The planner wrote: leftover <- 26 / 5, and reported 5.2 slices left over.

What is the goal, and which operator matches it (+, -, *, /, MOD):

The corrected expression and its single value:

Enrichment - the order-of-operations or division-type subtlety:

Scenario 3 · Core
Goal: each friend's EXACT share when 26 slices are split among 5 friends, fractional slices allowed. The planner wrote: share <- 26 MOD 5, and reported a share of 1.

What is the goal, and which operator matches it (+, -, *, /, MOD):

The corrected expression and its single value:

Enrichment - the order-of-operations or division-type subtlety:

Scenario 4 · Challenge
Goal: evaluate 2 * 6 MOD 4 correctly. The planner insists the answer is 4, computing 6 MOD 4 = 2 first and then 2 * 2.

What is the goal, and which operator matches it (+, -, *, /, MOD):

The corrected expression and its single value:

Enrichment - the order-of-operations or division-type subtlety:

Scenario 5 · Challenge

Goal: evaluate 17 / 5 on the AP reference sheet. The planner claims 17 / 5 = 3, reasoning that 'code always drops the decimal.'

What is the goal, and which operator matches it (+, -, *, /, MOD):

The corrected expression and its single value:

Enrichment - the order-of-operations or division-type subtlety:

No graded check on this page yetNot recorded

About the line in your handout

Your handout says this exercise is available online and auto-graded. The exercise IS here, and it is the same work in the same order, but the auto-graded half is not written for this topic yet. Nothing on this page is scored or sent to your teacher.

Hand this in the way your teacher asked for it. Topic 1.1 has its graded check today, and the rest follow.

Get in Touch

Whether you're a student, parent, or teacher — I'd love to hear from you.

Just want free AP CS resources?

Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.

Typically responds within 24 hours

Message Sent!

Thanks for reaching out. I'll get back to you within 24 hours.

🏫 Welcome, fellow educator!

I offer curriculum resources, practice materials, and study guides designed for AP CS teachers. Let me know what you're looking for — whether it's classroom materials, a guest speaker, or Teachers Pay Teachers resources.

Email

[email protected]

📚

Courses

AP CSA, CSP, & Cybersecurity

Response Time

Within 24 hours

Prefer email? Reach me directly at [email protected]