B4Coder

🏛️ College Admission (Form Logic) · Mission 3 of 6

🎓 Eligible for the Course

Each course has its own cut-off: B.Sc Computer Science needs 60%, B.Com 50%, B.A English 45%.

Your mission

  1. Choose by form.course, and find the cut-off: need = 60, 50 or 45.
  2. If form.marks >= need: ok = true, message = "Eligible for " + form.course.
  3. Otherwise: ok = false, message = form.course + " needs " + need + "% or more."

Getting the mission ready…