🎓 Student Explorer · Mission 12 of 13
✅ Did Everyone Pass?
The pass mark is 60. The head of department wants two things: how many passed, and whether the whole class did, true or false.
Your mission
- passCount is an Integer: start at 0, and add 1 for each student with marks of 60 or more.
- allPassed is a Boolean: after the loop, allPassed = passCount == length(students).
- Tell passCount + " passed. All passed: " + allPassed.
Getting the mission ready…