/**
 * Calculate the final position of an athlete based on their initial position, velocity,
 * acceleration, and time.
 *
 * @param initialPosition The athlete's initial position.
 * @param velocity The athlete's initial velocity.
 * @param acceleration The acceleration experienced by the athlete.
 * @param time The time interval.
 * @return The final position of the athlete.
 */
fun calculateFinalPosition(initialPosition: Double, velocity: Double, acceleration: Double, time: Double): Double {

    val finalPosition = initialPosition + velocity * time + 0.5 * acceleration * time * time  // Calculate the final position
    return finalPosition
}
/**
 * Calculate the final position of an athlete based on their initial position, velocity,
 * acceleration, and time.
 *
 * @param initialPosition The athlete's initial position.
 * @param velocity The athlete's initial velocity.
 * @param acceleration The acceleration experienced by the athlete.
 * @param time The time interval.
 * @return The final position of the athlete.
 */
fun calculateFinalPosition(initialPosition: Double, velocity: Double, acceleration: Double, time: Double): Double {
/**
 * Calculate the final position of an athlete based on their initial position, velocity,
 * acceleration, and time.
 *
 * @param initialPosition The athlete's initial position.
 * @param velocity The athlete's initial velocity.
 * @param acceleration The acceleration experienced by the athlete.
 * @param time The time interval.
 * @return The final position of the athlete.
 */
fun calculateFinalPosition(initialPosition: Double, velocity: Double, acceleration: Double, time: Double): Double {

    val finalPosition = initialPosition + velocity * time + 0.5 * acceleration * time * time  // Calculate the final position
    return finalPosition
}