B4Coder

🎓 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

  1. passCount is an Integer: start at 0, and add 1 for each student with marks of 60 or more.
  2. allPassed is a Boolean: after the loop, allPassed = passCount == length(students).
  3. Tell passCount + " passed. All passed: " + allPassed.

Getting the mission ready…