B4Coder

🎓 Student Explorer · Mission 4 of 13

🏛️ One Department

Each head of department wants their own list. Ask which department, and list just those students.

Your mission

  1. Ask "Which department?" and keep the answer in dept.
  2. Make found = [ ].
  3. Go through students. When s.dept == dept, add s.name to found.
  4. Tell length(found) + " students in " + dept.

Getting the mission ready…