/**
 * Given a list of tuples representing the resolution of each photo taken by a photographer, calculate and return the average resolution.
 *
 * Each tuple in the list consists of three elements: the width, height, and depth of the photo.
 * The depth represents the number of colors per pixel.
 *
 * @param photoTuples A list of tuples where each tuple represents the resolution of a photo.
 * @return The average resolution of all the photos.
 */
fun calculateAverageResolution(photoTuples: List<Triple<Int, Int, Int>>): Double {

    var totalResolution = 0
    val numPhotos = photoTuples.size

    for (photo in photoTuples) {
        val (width, height, depth) = photo
        val resolution = width * height * depth
        totalResolution += resolution
    }

    val averageResolution = totalResolution.toDouble() / numPhotos
    return averageResolution
}
/**
 * Given a list of tuples representing the resolution of each photo taken by a photographer, calculate and return the average resolution.
 *
 * Each tuple in the list consists of three elements: the width, height, and depth of the photo.
 * The depth represents the number of colors per pixel.
 *
 * @param photoTuples A list of tuples where each tuple represents the resolution of a photo.
 * @return The average resolution of all the photos.
 */
fun calculateAverageResolution(photoTuples: List<Triple<Int, Int, Int>>): Double {
/**
 * Given a list of tuples representing the resolution of each photo taken by a photographer, calculate and return the average resolution.
 *
 * Each tuple in the list consists of three elements: the width, height, and depth of the photo.
 * The depth represents the number of colors per pixel.
 *
 * @param photoTuples A list of tuples where each tuple represents the resolution of a photo.
 * @return The average resolution of all the photos.
 */
fun calculateAverageResolution(photoTuples: List<Triple<Int, Int, Int>>): Double {

    var totalResolution = 0
    val numPhotos = photoTuples.size

    for (photo in photoTuples) {
        val (width, height, depth) = photo
        val resolution = width * height * depth
        totalResolution += resolution
    }

    val averageResolution = totalResolution.toDouble() / numPhotos
    return averageResolution
}