/**
 * Calculate the total distance traveled by an artist based on their speed and time.
 *
 * @param speed The speed of the artist.
 * @param time The time elapsed.
 * @return The total distance traveled by the artist.
 */
fun calculateTotalDistance(speed: Float, time: Float): Float {

    var totalDistance = 0f

    // Complete the code below to calculate the total distance traveled
    for (i in 1..time.toInt()) {
        // Missing code: Add the distance covered during each second to the totalDistance variable.
        totalDistance += speed
    }

    return totalDistance
}
/**
 * Calculate the total distance traveled by an artist based on their speed and time.
 *
 * @param speed The speed of the artist.
 * @param time The time elapsed.
 * @return The total distance traveled by the artist.
 */
fun calculateTotalDistance(speed: Float, time: Float): Float {
/**
 * Calculate the total distance traveled by an artist based on their speed and time.
 *
 * @param speed The speed of the artist.
 * @param time The time elapsed.
 * @return The total distance traveled by the artist.
 */
fun calculateTotalDistance(speed: Float, time: Float): Float {

    var totalDistance = 0f

    // Complete the code below to calculate the total distance traveled
    for (i in 1..time.toInt()) {
        // Missing code: Add the distance covered during each second to the totalDistance variable.
        totalDistance += speed
    }

    return totalDistance
}