/**
 * A photographer wants to calculate the average shutter speed of three different photos.
 * The shutter speeds of the photos are given as exp1, exp2, and exp3 in seconds.
 * Write a function that calculates the average shutter speed and returns it as a string in the format "X.XX seconds".
 *
 * @param exp1 The shutter speed of the first photo in seconds.
 * @param exp2 The shutter speed of the second photo in seconds.
 * @param exp3 The shutter speed of the third photo in seconds.
 * @return The average shutter speed in the format "X.XX seconds".
 */
fun calculateAverageShutterSpeed(exp1: Double, exp2: Double, exp3: Double): String {

    // Calculate the sum of shutter speeds and divide it by 3 to find the average
    val avgShutterSpeed = (exp1 + exp2 + exp3) / 3

    // Convert the average shutter speed to string and format it to show 2 decimal places
    val avgShutterSpeedStr = String.format("%.2f seconds", avgShutterSpeed)

    return avgShutterSpeedStr
}
/**
 * A photographer wants to calculate the average shutter speed of three different photos.
 * The shutter speeds of the photos are given as exp1, exp2, and exp3 in seconds.
 * Write a function that calculates the average shutter speed and returns it as a string in the format "X.XX seconds".
 *
 * @param exp1 The shutter speed of the first photo in seconds.
 * @param exp2 The shutter speed of the second photo in seconds.
 * @param exp3 The shutter speed of the third photo in seconds.
 * @return The average shutter speed in the format "X.XX seconds".
 */
fun calculateAverageShutterSpeed(exp1: Double, exp2: Double, exp3: Double): String {
/**
 * A photographer wants to calculate the average shutter speed of three different photos.
 * The shutter speeds of the photos are given as exp1, exp2, and exp3 in seconds.
 * Write a function that calculates the average shutter speed and returns it as a string in the format "X.XX seconds".
 *
 * @param exp1 The shutter speed of the first photo in seconds.
 * @param exp2 The shutter speed of the second photo in seconds.
 * @param exp3 The shutter speed of the third photo in seconds.
 * @return The average shutter speed in the format "X.XX seconds".
 */
fun calculateAverageShutterSpeed(exp1: Double, exp2: Double, exp3: Double): String {

    // Calculate the sum of shutter speeds and divide it by 3 to find the average
    val avgShutterSpeed = (exp1 + exp2 + exp3) / 3

    // Convert the average shutter speed to string and format it to show 2 decimal places
    val avgShutterSpeedStr = String.format("%.2f seconds", avgShutterSpeed)

    return avgShutterSpeedStr
}