/**
 * Calculates the average speed of an athlete.
 *
 * @param distance the total distance covered by the athlete (in meters)
 * @param timeTaken the total time taken by the athlete (in seconds)
 * @return The average speed of the athlete (in meters per second)
 */
fun getAvgSpeed(distance: Double, timeTaken: Double): Double {

    val avgSpeed: Double = if (distance > 0 && timeTaken > 0) {
        distance / timeTaken
    } else {
        0.0
    }
    return avgSpeed
}
/**
 * Calculates the average speed of an athlete.
 *
 * @param distance the total distance covered by the athlete (in meters)
 * @param timeTaken the total time taken by the athlete (in seconds)
 * @return The average speed of the athlete (in meters per second)
 */
fun getAvgSpeed(distance: Double, timeTaken: Double): Double {
/**
 * Calculates the average speed of an athlete.
 *
 * @param distance the total distance covered by the athlete (in meters)
 * @param timeTaken the total time taken by the athlete (in seconds)
 * @return The average speed of the athlete (in meters per second)
 */
fun getAvgSpeed(distance: Double, timeTaken: Double): Double {

    val avgSpeed: Double = if (distance > 0 && timeTaken > 0) {
        distance / timeTaken
    } else {
        0.0
    }
    return avgSpeed
}