Big Idea 3 · Topic 3.7 · Exercise 1
Trace the Gate
25 minutes
Back to the Topic 3.7 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.
Part B, from your handoutNot recorded
Your handout says these are the same items available here. Part A stays on paper.
Q1 · 3 points on the handout
Invent your own rider (a height and an age) that makes the INNER ELSE run, so the gate displays 'Ride with an adult'. State both conditions that must hold and confirm the outer is checked first.
Q2 · 3 points on the handout
A classmate says, 'The gate checks age for every rider.' Using the CED definition of nested conditional statements, explain precisely what is wrong.
Q3 · 2 points on the handout
ENRICHMENT: Add a nested rule for short riders: any rider UNDER 48 inches who is at least 18 should instead see 'Staff entrance only'. Write where the new inner conditional goes and give its pseudocode. Which branch must it live in, and why?
Q4 · 0 points on the handout
Next step: you traced these by hand. Now head to the Topic 3.7 page and type and run the harder versions, where the computer checks your output for you - including a three-level nest and a gate you write from scratch.
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.