/**
 * Takes a dictionary of economic statistics and calculates the total value.
 *
 * @param econStats A dictionary containing various economic statistics.
 * @return The sum of all the values in the economic statistics dictionary.
 *
 * Example:
 * val economicStatistics = mapOf(
 *     "GDP" to 5000,
 *     "Unemployment" to null,
 *     "Inflation" to 2.5,
 *     "Exports" to null,
 *     "Imports" to 1000
 * )
 * calculateTotalValue(economicStatistics) // Output: 6002.5
 */
fun calculateTotalValue(econStats: Map<String, Double?>): Double {

    var totalValue = 0.0

    for ((_, value) in econStats) {
        totalValue += value ?: 0.0
    }

    return totalValue
}
/**
 * Takes a dictionary of economic statistics and calculates the total value.
 *
 * @param econStats A dictionary containing various economic statistics.
 * @return The sum of all the values in the economic statistics dictionary.
 *
 * Example:
 * val economicStatistics = mapOf(
 *     "GDP" to 5000,
 *     "Unemployment" to null,
 *     "Inflation" to 2.5,
 *     "Exports" to null,
 *     "Imports" to 1000
 * )
 * calculateTotalValue(economicStatistics) // Output: 6002.5
 */
fun calculateTotalValue(econStats: Map<String, Double?>): Double {
/**
 * Takes a dictionary of economic statistics and calculates the total value.
 *
 * @param econStats A dictionary containing various economic statistics.
 * @return The sum of all the values in the economic statistics dictionary.
 *
 * Example:
 * val economicStatistics = mapOf(
 *     "GDP" to 5000,
 *     "Unemployment" to null,
 *     "Inflation" to 2.5,
 *     "Exports" to null,
 *     "Imports" to 1000
 * )
 * calculateTotalValue(economicStatistics) // Output: 6002.5
 */
fun calculateTotalValue(econStats: Map<String, Double?>): Double {

    var totalValue = 0.0

    for ((_, value) in econStats) {
        totalValue += value ?: 0.0
    }

    return totalValue
}