/**
 * A Physical Therapist wants a program to calculate the distance traveled by a patient during a rehabilitation exercise.
 * The program should take into account the time taken, the initial speed, and the acceleration during the exercise.
 * The formula to calculate the distance is: distance = (initialSpeed * time) + ((acceleration * time^2) / 2).
 * Implement the calculateDistance function that accepts time, speed, and acceleration as arguments and returns the distance traveled.
 * Remember to convert the values to appropriate data types and use the correct mathematical operators.
 */
fun calculateDistance(time: Double, speed: Double, acceleration: Double): Double {

    return (speed * time) + ((acceleration * time * time) / 2)
}
/**
 * A Physical Therapist wants a program to calculate the distance traveled by a patient during a rehabilitation exercise.
 * The program should take into account the time taken, the initial speed, and the acceleration during the exercise.
 * The formula to calculate the distance is: distance = (initialSpeed * time) + ((acceleration * time^2) / 2).
 * Implement the calculateDistance function that accepts time, speed, and acceleration as arguments and returns the distance traveled.
 * Remember to convert the values to appropriate data types and use the correct mathematical operators.
 */
fun calculateDistance(time: Double, speed: Double, acceleration: Double): Double {
/**
 * A Physical Therapist wants a program to calculate the distance traveled by a patient during a rehabilitation exercise.
 * The program should take into account the time taken, the initial speed, and the acceleration during the exercise.
 * The formula to calculate the distance is: distance = (initialSpeed * time) + ((acceleration * time^2) / 2).
 * Implement the calculateDistance function that accepts time, speed, and acceleration as arguments and returns the distance traveled.
 * Remember to convert the values to appropriate data types and use the correct mathematical operators.
 */
fun calculateDistance(time: Double, speed: Double, acceleration: Double): Double {

    return (speed * time) + ((acceleration * time * time) / 2)
}