/**
 * Given the age and time of an athlete, determine the medal they have won.
 *
 * @param athleteAge The age of the athlete.
 * @param athleteTime The time taken by the athlete.
 * @return The medal the athlete has won (gold, silver, bronze, or none).
 */
fun calculateMedal(athleteAge: Int, athleteTime: Double): String {

    return if (athleteAge >= 18) {
        when {
            athleteTime < 9.6 -> "gold"
            athleteTime < 10.2 -> "silver"
            athleteTime < 10.6 -> "bronze"
            else -> "none"
        }
    } else {
        when {
            athleteTime < 10.4 -> "gold"
            athleteTime < 11.0 -> "silver"
            else -> "none"
        }
    }
}
/**
 * Given the age and time of an athlete, determine the medal they have won.
 *
 * @param athleteAge The age of the athlete.
 * @param athleteTime The time taken by the athlete.
 * @return The medal the athlete has won (gold, silver, bronze, or none).
 */
fun calculateMedal(athleteAge: Int, athleteTime: Double): String {
/**
 * Given the age and time of an athlete, determine the medal they have won.
 *
 * @param athleteAge The age of the athlete.
 * @param athleteTime The time taken by the athlete.
 * @return The medal the athlete has won (gold, silver, bronze, or none).
 */
fun calculateMedal(athleteAge: Int, athleteTime: Double): String {

    return if (athleteAge >= 18) {
        when {
            athleteTime < 9.6 -> "gold"
            athleteTime < 10.2 -> "silver"
            athleteTime < 10.6 -> "bronze"
            else -> "none"
        }
    } else {
        when {
            athleteTime < 10.4 -> "gold"
            athleteTime < 11.0 -> "silver"
            else -> "none"
        }
    }
}