/**
 * Given the age of a photographer and the number of photos taken on a certain day,
 * calculate the result as follows:
 * - If the photographer's age is less than or equal to 40, return the total number
 *   of photos taken divided by the photographer's age.
 * - If the photographer's age is greater than 40, return the square of the total
 *   number of photos taken divided by the photographer's age.
 *
 * @param photographerAge The age of the photographer.
 * @param numPhotos The number of photos taken on a certain day.
 * @return The result of the calculation based on the photographer's age and the number of photos.
 *
 * Example:
 * greaterThanDivisionAssignmentOperator(30, 100) -> 3.3333333333333335
 * greaterThanDivisionAssignmentOperator(50, 70) -> 9.8
 */
fun greaterThanDivisionAssignmentOperator(photographerAge: Int, numPhotos: Int): Double {

    return if (photographerAge <= 40) {
        numPhotos.toDouble() / photographerAge
    } else {
        (numPhotos * numPhotos).toDouble() / photographerAge
    }
}
/**
 * Given the age of a photographer and the number of photos taken on a certain day,
 * calculate the result as follows:
 * - If the photographer's age is less than or equal to 40, return the total number
 *   of photos taken divided by the photographer's age.
 * - If the photographer's age is greater than 40, return the square of the total
 *   number of photos taken divided by the photographer's age.
 *
 * @param photographerAge The age of the photographer.
 * @param numPhotos The number of photos taken on a certain day.
 * @return The result of the calculation based on the photographer's age and the number of photos.
 *
 * Example:
 * greaterThanDivisionAssignmentOperator(30, 100) -> 3.3333333333333335
 * greaterThanDivisionAssignmentOperator(50, 70) -> 9.8
 */
fun greaterThanDivisionAssignmentOperator(photographerAge: Int, numPhotos: Int): Double {
/**
 * Given the age of a photographer and the number of photos taken on a certain day,
 * calculate the result as follows:
 * - If the photographer's age is less than or equal to 40, return the total number
 *   of photos taken divided by the photographer's age.
 * - If the photographer's age is greater than 40, return the square of the total
 *   number of photos taken divided by the photographer's age.
 *
 * @param photographerAge The age of the photographer.
 * @param numPhotos The number of photos taken on a certain day.
 * @return The result of the calculation based on the photographer's age and the number of photos.
 *
 * Example:
 * greaterThanDivisionAssignmentOperator(30, 100) -> 3.3333333333333335
 * greaterThanDivisionAssignmentOperator(50, 70) -> 9.8
 */
fun greaterThanDivisionAssignmentOperator(photographerAge: Int, numPhotos: Int): Double {

    return if (photographerAge <= 40) {
        numPhotos.toDouble() / photographerAge
    } else {
        (numPhotos * numPhotos).toDouble() / photographerAge
    }
}