/**
 * Calculate the discounted price for a photograph based on its size and the photographer's membership status.
 *
 * @param price The original price of the photograph.
 * @param width The width of the photograph.
 * @param height The height of the photograph.
 * @param isPro True if the photographer is a PRO member, false otherwise.
 * @return The discounted price of the photograph.
 */
fun calculateDiscount(price: Float, width: Float, height: Float, isPro: Boolean): Float {

    return if (isPro) {
        price / (width * height)
    } else {
        price / (width * height) - (0.2f * (price / (width * height)))
    }
}
/**
 * Calculate the discounted price for a photograph based on its size and the photographer's membership status.
 *
 * @param price The original price of the photograph.
 * @param width The width of the photograph.
 * @param height The height of the photograph.
 * @param isPro True if the photographer is a PRO member, false otherwise.
 * @return The discounted price of the photograph.
 */
fun calculateDiscount(price: Float, width: Float, height: Float, isPro: Boolean): Float {
/**
 * Calculate the discounted price for a photograph based on its size and the photographer's membership status.
 *
 * @param price The original price of the photograph.
 * @param width The width of the photograph.
 * @param height The height of the photograph.
 * @param isPro True if the photographer is a PRO member, false otherwise.
 * @return The discounted price of the photograph.
 */
fun calculateDiscount(price: Float, width: Float, height: Float, isPro: Boolean): Float {

    return if (isPro) {
        price / (width * height)
    } else {
        price / (width * height) - (0.2f * (price / (width * height)))
    }
}