/**
 * Calculates the cost of a piece of furniture given its width, length, and price per square foot.
 * The function rounds the cost to the nearest hundredth and returns a string representing the rounded cost.
 *
 * @param width The width of the piece of furniture in feet.
 * @param length The length of the piece of furniture in feet.
 * @param price The price per square foot.
 * @return The rounded cost of the piece of furniture.
 */
fun calculateCost(width: Double, length: Double, price: Double): String {

    val area = width * length
    val cost = String.format("%.2f", area * price).toDouble()
    return cost.toString()
}
/**
 * Calculates the cost of a piece of furniture given its width, length, and price per square foot.
 * The function rounds the cost to the nearest hundredth and returns a string representing the rounded cost.
 *
 * @param width The width of the piece of furniture in feet.
 * @param length The length of the piece of furniture in feet.
 * @param price The price per square foot.
 * @return The rounded cost of the piece of furniture.
 */
fun calculateCost(width: Double, length: Double, price: Double): String {
/**
 * Calculates the cost of a piece of furniture given its width, length, and price per square foot.
 * The function rounds the cost to the nearest hundredth and returns a string representing the rounded cost.
 *
 * @param width The width of the piece of furniture in feet.
 * @param length The length of the piece of furniture in feet.
 * @param price The price per square foot.
 * @return The rounded cost of the piece of furniture.
 */
fun calculateCost(width: Double, length: Double, price: Double): String {

    val area = width * length
    val cost = String.format("%.2f", area * price).toDouble()
    return cost.toString()
}