/**
 * This exercise checks if a student's score is above the pass threshold.
 *
 * Given a score and a pass threshold, write a function that returns a pair of two boolean values.
 * - The first value indicates whether the student passed or not.
 * - The second value indicates whether the score is above average or not.
 *
 * In this scenario, a student is considered to have passed if their score is equal to or greater than the pass threshold.
 * If the score is above average, it means the student scored higher than the average score across all students.
 *
 * Complete the code below to solve the exercise.
 */
fun checkGrade(score: Int, passThreshold: Int, scoreList: List<Int>): Pair<Boolean, Boolean> {

    val passStatus = score >= passThreshold  // Check if the student passed
    val aboveAverage = score > scoreList.average()  // Check if the score is above average

    return Pair(passStatus, aboveAverage)
}
/**
 * This exercise checks if a student's score is above the pass threshold.
 *
 * Given a score and a pass threshold, write a function that returns a pair of two boolean values.
 * - The first value indicates whether the student passed or not.
 * - The second value indicates whether the score is above average or not.
 *
 * In this scenario, a student is considered to have passed if their score is equal to or greater than the pass threshold.
 * If the score is above average, it means the student scored higher than the average score across all students.
 *
 * Complete the code below to solve the exercise.
 */
fun checkGrade(score: Int, passThreshold: Int, scoreList: List<Int>): Pair<Boolean, Boolean> {
/**
 * This exercise checks if a student's score is above the pass threshold.
 *
 * Given a score and a pass threshold, write a function that returns a pair of two boolean values.
 * - The first value indicates whether the student passed or not.
 * - The second value indicates whether the score is above average or not.
 *
 * In this scenario, a student is considered to have passed if their score is equal to or greater than the pass threshold.
 * If the score is above average, it means the student scored higher than the average score across all students.
 *
 * Complete the code below to solve the exercise.
 */
fun checkGrade(score: Int, passThreshold: Int, scoreList: List<Int>): Pair<Boolean, Boolean> {

    val passStatus = score >= passThreshold  // Check if the student passed
    val aboveAverage = score > scoreList.average()  // Check if the score is above average

    return Pair(passStatus, aboveAverage)
}