🏛️ 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
- Choose by form.course, and find the cut-off: need = 60, 50 or 45.
- If form.marks >= need: ok = true, message = "Eligible for " + form.course.
- Otherwise: ok = false, message = form.course + " needs " + need + "% or more."
Getting the mission ready…