/**
 * This exercise requires you to write a function that calculates the amount
 * of paint required for a given area, considering the coverage per liter.
 *
 * The function should take two parameters:
 * - area: A float representing the total area to be painted (in square meters).
 * - coverage: A float representing the coverage per liter of paint (in square meters).
 *
 * The function should return the number of liters of paint required, rounded up to the nearest whole number.
 *
 * Example:
 * Given an area of 78.5 square meters and a coverage of 10.2 square meters per liter,
 * the function should return 8.
 *
 * Remember that paint cannot be partially used, so if the required amount is not a whole number,
 * you should round it up to the nearest whole number.
 *
 * You can use the kotlin.math.ceil() function to round up a float to the nearest whole number.
 *
 * Your task is to complete the following function:
 */
import kotlin.math.ceil

fun calculateRequiredPaint(area: Double, coverage: Double): Int {

    val requiredPaint = ceil(area / coverage).toInt()
    return requiredPaint
}
/**
 * This exercise requires you to write a function that calculates the amount
 * of paint required for a given area, considering the coverage per liter.
 *
 * The function should take two parameters:
 * - area: A float representing the total area to be painted (in square meters).
 * - coverage: A float representing the coverage per liter of paint (in square meters).
 *
 * The function should return the number of liters of paint required, rounded up to the nearest whole number.
 *
 * Example:
 * Given an area of 78.5 square meters and a coverage of 10.2 square meters per liter,
 * the function should return 8.
 *
 * Remember that paint cannot be partially used, so if the required amount is not a whole number,
 * you should round it up to the nearest whole number.
 *
 * You can use the kotlin.math.ceil() function to round up a float to the nearest whole number.
 *
 * Your task is to complete the following function:
 */
import kotlin.math.ceil

fun calculateRequiredPaint(area: Double, coverage: Double): Int {
/**
 * This exercise requires you to write a function that calculates the amount
 * of paint required for a given area, considering the coverage per liter.
 *
 * The function should take two parameters:
 * - area: A float representing the total area to be painted (in square meters).
 * - coverage: A float representing the coverage per liter of paint (in square meters).
 *
 * The function should return the number of liters of paint required, rounded up to the nearest whole number.
 *
 * Example:
 * Given an area of 78.5 square meters and a coverage of 10.2 square meters per liter,
 * the function should return 8.
 *
 * Remember that paint cannot be partially used, so if the required amount is not a whole number,
 * you should round it up to the nearest whole number.
 *
 * You can use the kotlin.math.ceil() function to round up a float to the nearest whole number.
 *
 * Your task is to complete the following function:
 */
import kotlin.math.ceil

fun calculateRequiredPaint(area: Double, coverage: Double): Int {

    val requiredPaint = ceil(area / coverage).toInt()
    return requiredPaint
}