/**
 * Calculate the cost of a room based on its dimensions and the price per square foot.
 *
 * @param length Length of the room in feet.
 * @param width Width of the room in feet.
 * @param height Height of the room in feet.
 * @param pricePerSqft Price per square foot of the material used for flooring.
 * @param padding Percentage of additional material in case of wastage.
 * @return Total cost of the room flooring, including padding.
 */
fun calculateRoomCost(length: Double, width: Double, height: Double, pricePerSqft: Double, padding: Double): Double {

    val totalSqft = length * width
    val totalSqftWithPadding = totalSqft + (totalSqft * (padding / 100))
    val cost = totalSqftWithPadding * pricePerSqft
    
    return cost
}
/**
 * Calculate the cost of a room based on its dimensions and the price per square foot.
 *
 * @param length Length of the room in feet.
 * @param width Width of the room in feet.
 * @param height Height of the room in feet.
 * @param pricePerSqft Price per square foot of the material used for flooring.
 * @param padding Percentage of additional material in case of wastage.
 * @return Total cost of the room flooring, including padding.
 */
fun calculateRoomCost(length: Double, width: Double, height: Double, pricePerSqft: Double, padding: Double): Double {
/**
 * Calculate the cost of a room based on its dimensions and the price per square foot.
 *
 * @param length Length of the room in feet.
 * @param width Width of the room in feet.
 * @param height Height of the room in feet.
 * @param pricePerSqft Price per square foot of the material used for flooring.
 * @param padding Percentage of additional material in case of wastage.
 * @return Total cost of the room flooring, including padding.
 */
fun calculateRoomCost(length: Double, width: Double, height: Double, pricePerSqft: Double, padding: Double): Double {

    val totalSqft = length * width
    val totalSqftWithPadding = totalSqft + (totalSqft * (padding / 100))
    val cost = totalSqftWithPadding * pricePerSqft
    
    return cost
}