use context essentials2021 fun print-makeup(is-SNC :: Boolean, quiz1 :: Number, quiz2 :: Number) -> Boolean: doc: "Produces true if a quiz should be printed for the student, and false otherwise" not(is-SNC) and ((quiz1 < 62) or (quiz2 < 70)) where: print-makeup(false, 87, 53) is true # Viktorija print-makeup(true, 72, 99) is false # Pranav end fun get-grade(student-name :: String, assignment :: String) -> Number: doc: "Produce the score that the given student got on the given assignment" if student-name == "Viktorija": if assignment == "Quiz 1": 87 else if assignment == "Quiz 2": 53 else: raise("Assignment not found!") end else if student-name == "Pranav": if assignment == "Quiz 1": 72 else if assignment == "Quiz 2": 99 else: raise("Assignment not found!") end else: raise("Student not found!") end end fun get-SNC-status(student-name :: String) -> Boolean: if student-name == "Viktorija": false else if student-name == "Pranav": true else: raise("Student not found!") end end # ------------------------------------------------- #| row: "Ursa", 3, false, 83, 56 row: "Isaias", 4, true, 92, 79 row: "Jackson", 8, true, 61, 0 row: "Isi", 7, false, 90, 87 row: "Thuy", 5, false, 85, 85 row: "Brigida", 5, false, 0, 0 |#