/**
 * Calculate the average speed given the distance and time.
 *
 * @param distance The total distance travelled.
 * @param time The total time taken to cover the distance.
 * @return The average speed in units of distance per time.
 */
fun averageSpeed(distance: Float, time: Float): Float {

    // Calculate the average speed
    val speed = distance / time
    return speed
}
/**
 * Calculate the average speed given the distance and time.
 *
 * @param distance The total distance travelled.
 * @param time The total time taken to cover the distance.
 * @return The average speed in units of distance per time.
 */
fun averageSpeed(distance: Float, time: Float): Float {
/**
 * Calculate the average speed given the distance and time.
 *
 * @param distance The total distance travelled.
 * @param time The total time taken to cover the distance.
 * @return The average speed in units of distance per time.
 */
fun averageSpeed(distance: Float, time: Float): Float {

    // Calculate the average speed
    val speed = distance / time
    return speed
}