/**
 * This function calculates the total distance covered by an athlete in a given time period
 */
fun calculateTotalDistance(sprintSpeed: Double, sprintTime: Double, jogSpeed: Double, jogTime: Double): Double {

    // Calculate the distance covered while sprinting
    val sprintDistance = sprintSpeed * sprintTime

    // Calculate the distance covered while jogging
    val jogDistance = jogSpeed * jogTime

    // Calculate the total distance covered
    val totalDistance = sprintDistance + jogDistance

    return totalDistance
}
/**
 * This function calculates the total distance covered by an athlete in a given time period
 */
fun calculateTotalDistance(sprintSpeed: Double, sprintTime: Double, jogSpeed: Double, jogTime: Double): Double {
/**
 * This function calculates the total distance covered by an athlete in a given time period
 */
fun calculateTotalDistance(sprintSpeed: Double, sprintTime: Double, jogSpeed: Double, jogTime: Double): Double {

    // Calculate the distance covered while sprinting
    val sprintDistance = sprintSpeed * sprintTime

    // Calculate the distance covered while jogging
    val jogDistance = jogSpeed * jogTime

    // Calculate the total distance covered
    val totalDistance = sprintDistance + jogDistance

    return totalDistance
}