/**
 * Calculate the number of paint cans needed to paint a list of walls.
 *
 * @param wallAreas A list of wall areas (in square meters).
 * @param coveragePerCan The coverage area (in square meters) of each paint can.
 * @return The number of paint cans needed to paint all the walls.
 */
fun calculatePaintCansNeeded(wallAreas: List<Double>, coveragePerCan: Double): Int {

    val totalArea = wallAreas.sum()
    val cansNeeded = (totalArea / coveragePerCan).toInt()
    return cansNeeded
}
/**
 * Calculate the number of paint cans needed to paint a list of walls.
 *
 * @param wallAreas A list of wall areas (in square meters).
 * @param coveragePerCan The coverage area (in square meters) of each paint can.
 * @return The number of paint cans needed to paint all the walls.
 */
fun calculatePaintCansNeeded(wallAreas: List<Double>, coveragePerCan: Double): Int {
/**
 * Calculate the number of paint cans needed to paint a list of walls.
 *
 * @param wallAreas A list of wall areas (in square meters).
 * @param coveragePerCan The coverage area (in square meters) of each paint can.
 * @return The number of paint cans needed to paint all the walls.
 */
fun calculatePaintCansNeeded(wallAreas: List<Double>, coveragePerCan: Double): Int {

    val totalArea = wallAreas.sum()
    val cansNeeded = (totalArea / coveragePerCan).toInt()
    return cansNeeded
}