/**
 * Analyze the current economic situation based on profit calculations.
 *
 * @return A message indicating the current economic situation.
 */
fun analyzeEconomicSituation(): String {

    val expenses2020 = 50000.0
    val revenue2020 = 60000.0
    val expenses2021 = 60000.0
    val revenue2021 = 55000.0

    val profit2020 = calculateProfit(expenses2020, revenue2020)
    val profit2021 = calculateProfit(expenses2021, revenue2021)

    return if (profit2020 > 0 && profit2021 > 0) {
        "The economist has consistently made positive profits over the years."
    } else {
        "The economist has not consistently made positive profits over the years."
    }
}

fun calculateProfit(expenses: Double, revenue: Double): Double {
    return revenue - expenses
}
/**
 * Analyze the current economic situation based on profit calculations.
 *
 * @return A message indicating the current economic situation.
 */
fun analyzeEconomicSituation(): String {
/**
 * Analyze the current economic situation based on profit calculations.
 *
 * @return A message indicating the current economic situation.
 */
fun analyzeEconomicSituation(): String {

    val expenses2020 = 50000.0
    val revenue2020 = 60000.0
    val expenses2021 = 60000.0
    val revenue2021 = 55000.0

    val profit2020 = calculateProfit(expenses2020, revenue2020)
    val profit2021 = calculateProfit(expenses2021, revenue2021)

    return if (profit2020 > 0 && profit2021 > 0) {
        "The economist has consistently made positive profits over the years."
    } else {
        "The economist has not consistently made positive profits over the years."
    }
}

fun calculateProfit(expenses: Double, revenue: Double): Double {
    return revenue - expenses
}