/**
 * An interior designer wants to calculate the number of paint cans needed to cover a given total area.
 * The coveragePerCan represents the area that can be covered by a single can of paint.
 * The function should return the number of paint cans required to cover the entire area.
 * If the totalArea is zero or negative, return null.
 *
 * @param totalArea The total area to be painted.
 * @param coveragePerCan The area covered by a single can of paint.
 * @return The number of paint cans required.
 *
 * Example:
 * calculateNumberOfPaintCans(100.5, 10) -> 11
 * calculateNumberOfPaintCans(200.0, 15.5) -> 13
 * calculateNumberOfPaintCans(0.0, 10.0) -> null
 */
fun calculateNumberOfPaintCans(totalArea: Double, coveragePerCan: Double): Int? {

    if (totalArea <= 0) {
        return null
    }
    return (totalArea / coveragePerCan).toInt() + 1
}
/**
 * An interior designer wants to calculate the number of paint cans needed to cover a given total area.
 * The coveragePerCan represents the area that can be covered by a single can of paint.
 * The function should return the number of paint cans required to cover the entire area.
 * If the totalArea is zero or negative, return null.
 *
 * @param totalArea The total area to be painted.
 * @param coveragePerCan The area covered by a single can of paint.
 * @return The number of paint cans required.
 *
 * Example:
 * calculateNumberOfPaintCans(100.5, 10) -> 11
 * calculateNumberOfPaintCans(200.0, 15.5) -> 13
 * calculateNumberOfPaintCans(0.0, 10.0) -> null
 */
fun calculateNumberOfPaintCans(totalArea: Double, coveragePerCan: Double): Int? {
/**
 * An interior designer wants to calculate the number of paint cans needed to cover a given total area.
 * The coveragePerCan represents the area that can be covered by a single can of paint.
 * The function should return the number of paint cans required to cover the entire area.
 * If the totalArea is zero or negative, return null.
 *
 * @param totalArea The total area to be painted.
 * @param coveragePerCan The area covered by a single can of paint.
 * @return The number of paint cans required.
 *
 * Example:
 * calculateNumberOfPaintCans(100.5, 10) -> 11
 * calculateNumberOfPaintCans(200.0, 15.5) -> 13
 * calculateNumberOfPaintCans(0.0, 10.0) -> null
 */
fun calculateNumberOfPaintCans(totalArea: Double, coveragePerCan: Double): Int? {

    if (totalArea <= 0) {
        return null
    }
    return (totalArea / coveragePerCan).toInt() + 1
}