/**
 * A function to calculate the total cost of materials based on the dimensions of a room and the cost per square foot of the material.
 *
 * @param roomLength the length of the room in feet
 * @param roomWidth the width of the room in feet
 * @param materialCost the cost per square foot of the material
 * @return the total cost of materials for the given room dimensions
 */
fun calculateCost(roomLength: Double, roomWidth: Double, materialCost: Double): Double {

    // Calculate the area of the room
    val roomArea = roomLength * roomWidth

    // Calculate the total cost of materials using the area and cost per square foot
    val totalCost = roomArea * materialCost

    return totalCost
}
/**
 * A function to calculate the total cost of materials based on the dimensions of a room and the cost per square foot of the material.
 *
 * @param roomLength the length of the room in feet
 * @param roomWidth the width of the room in feet
 * @param materialCost the cost per square foot of the material
 * @return the total cost of materials for the given room dimensions
 */
fun calculateCost(roomLength: Double, roomWidth: Double, materialCost: Double): Double {
/**
 * A function to calculate the total cost of materials based on the dimensions of a room and the cost per square foot of the material.
 *
 * @param roomLength the length of the room in feet
 * @param roomWidth the width of the room in feet
 * @param materialCost the cost per square foot of the material
 * @return the total cost of materials for the given room dimensions
 */
fun calculateCost(roomLength: Double, roomWidth: Double, materialCost: Double): Double {

    // Calculate the area of the room
    val roomArea = roomLength * roomWidth

    // Calculate the total cost of materials using the area and cost per square foot
    val totalCost = roomArea * materialCost

    return totalCost
}