/**
 * This function calculates the total distance travelled by an athlete based on the given time, speed, and acceleration values.
 *
 * The distance is calculated using the formula:
 * distance = speed * time + (acceleration * time^2) / 2
 *
 * @param time The duration of the exercise in hours.
 * @param speed The initial speed of the athlete in meters per second.
 * @param acceleration The acceleration rate of the athlete in meters per second squared.
 * @return The total distance travelled by the athlete in meters.
 */
fun calculateDistance(time: Double, speed: Double, acceleration: Double): Double {

    val distance = speed * time + (acceleration * time * time) / 2
    return distance
}
/**
 * This function calculates the total distance travelled by an athlete based on the given time, speed, and acceleration values.
 *
 * The distance is calculated using the formula:
 * distance = speed * time + (acceleration * time^2) / 2
 *
 * @param time The duration of the exercise in hours.
 * @param speed The initial speed of the athlete in meters per second.
 * @param acceleration The acceleration rate of the athlete in meters per second squared.
 * @return The total distance travelled by the athlete in meters.
 */
fun calculateDistance(time: Double, speed: Double, acceleration: Double): Double {
/**
 * This function calculates the total distance travelled by an athlete based on the given time, speed, and acceleration values.
 *
 * The distance is calculated using the formula:
 * distance = speed * time + (acceleration * time^2) / 2
 *
 * @param time The duration of the exercise in hours.
 * @param speed The initial speed of the athlete in meters per second.
 * @param acceleration The acceleration rate of the athlete in meters per second squared.
 * @return The total distance travelled by the athlete in meters.
 */
fun calculateDistance(time: Double, speed: Double, acceleration: Double): Double {

    val distance = speed * time + (acceleration * time * time) / 2
    return distance
}