/**
 * This function receives a dictionary representing the rooms in a house and calculates the total area of the house.
 *
 * @param rooms A dictionary where the keys represent the names of the rooms and the values are the areas of each room in square meters.
 * @return The total area of the house in square meters.
 */
fun calculateTotalArea(rooms: Map<String, Float>): Float {

    var totalArea = 0f
    for (room in rooms) {
        totalArea += room.value
    }
    return totalArea
}
/**
 * This function receives a dictionary representing the rooms in a house and calculates the total area of the house.
 *
 * @param rooms A dictionary where the keys represent the names of the rooms and the values are the areas of each room in square meters.
 * @return The total area of the house in square meters.
 */
fun calculateTotalArea(rooms: Map<String, Float>): Float {
/**
 * This function receives a dictionary representing the rooms in a house and calculates the total area of the house.
 *
 * @param rooms A dictionary where the keys represent the names of the rooms and the values are the areas of each room in square meters.
 * @return The total area of the house in square meters.
 */
fun calculateTotalArea(rooms: Map<String, Float>): Float {

    var totalArea = 0f
    for (room in rooms) {
        totalArea += room.value
    }
    return totalArea
}