/**
 * Given two lists of high temperatures and low temperatures, this function calculates the average temperature for each day.
 *
 * @param highTemps List<Int> A list of high temperatures for each day.
 * @param lowTemps List<Int> A list of low temperatures for each day.
 * @return List<Double> A list of average temperatures for each day.
 */
fun calculateAverageTemperatures(highTemps: List<Int>, lowTemps: List<Int>): List<Double> {

    // Create an empty list to store the average temperatures
    val avgTemps = mutableListOf<Double>()

    // Calculate the average temperature for each day
    for (i in highTemps.indices) {
        val avgTemp = (highTemps[i] + lowTemps[i]) / 2.0
        avgTemps.add(avgTemp)
    }

    return avgTemps
}
/**
 * Given two lists of high temperatures and low temperatures, this function calculates the average temperature for each day.
 *
 * @param highTemps List<Int> A list of high temperatures for each day.
 * @param lowTemps List<Int> A list of low temperatures for each day.
 * @return List<Double> A list of average temperatures for each day.
 */
fun calculateAverageTemperatures(highTemps: List<Int>, lowTemps: List<Int>): List<Double> {
/**
 * Given two lists of high temperatures and low temperatures, this function calculates the average temperature for each day.
 *
 * @param highTemps List<Int> A list of high temperatures for each day.
 * @param lowTemps List<Int> A list of low temperatures for each day.
 * @return List<Double> A list of average temperatures for each day.
 */
fun calculateAverageTemperatures(highTemps: List<Int>, lowTemps: List<Int>): List<Double> {

    // Create an empty list to store the average temperatures
    val avgTemps = mutableListOf<Double>()

    // Calculate the average temperature for each day
    for (i in highTemps.indices) {
        val avgTemp = (highTemps[i] + lowTemps[i]) / 2.0
        avgTemps.add(avgTemp)
    }

    return avgTemps
}