B4Coder

🎓 Student Explorer · Mission 7 of 13

✍️ Grade Everyone

The table now has an empty grade column. Fill it in for every student: A from 85, B from 70, C below that.

Your mission

  1. Go through students.
  2. When s.marks >= 85, set s.grade to "A". Otherwise, when s.marks >= 70, "B". Otherwise "C".
  3. Watch the grade column fill in as the program runs.

Getting the mission ready…