YEAR 9 DIGITAL TECHNOLOGIES β’ LOGIC CHALLENGE
Challenge Question: Who Gets Through?
Think first. Solve it your way. Then post your answer.
π― THE CHALLENGE
Imagine you are building a school app.
The app asks for a student ID number.
Only students whose ID can be divided exactly by 3 or 5 are allowed through.
All others are blocked.
Your task:
Write Python logic to decide who gets through.
Write Python logic to decide who gets through.
β
WHAT TO POST
- Your code
- Your logic
- Or your best attempt
Try it yourself first. Thatβs the whole point.
π WHAT TO THINK ABOUT
- How can a program test a number for 3?
- How can it test for 5?
- How do you connect those checks?
- When should the student be allowed?
- What should the program output?
π SUCCESS CRITERIA
- Program asks for input
- Uses logical checks
- Makes a clear decision
- Outputs a clear message
π§ HINTS (Open only if stuck)
Hint 1
Start by getting input, then think about your first condition.
Hint 2
This is really two checks: one for 3, one for 5.
Hint 3
Use if / elif / else and combine ideas you already know.
π¬ SUBMIT
Post your attempt in the discussion β even if itβs not perfect.