/**
 * Given a list of dictionaries representing data for various aircraft, find the missing values in each dictionary.
 *
 * @param data A list of dictionaries where each dictionary represents data for an aircraft. The keys of the dictionaries are the variable names, and the values are the corresponding values.
 * @return A list of dictionaries where each dictionary represents the missing values in the original data. The keys of the dictionaries are the variable names, and the values are the missing values.
 */
fun findMissingValues(data: List<Map<String, Any>>): List<Map<String, Any>> {

    val missingValues = mutableListOf<Map<String, Any>>()
    for (aircraftData in data) {
        val missingValuesMap = mutableMapOf<String, Any>()
        val variables = listOf("id", "manufacturer", "model", "year", "fuel_capacity", "passenger_capacity", "empty_weight")
        for (variable in variables) {
            if (!aircraftData.containsKey(variable)) {
                missingValuesMap[variable] = "N/A"
            }
        }
        missingValues.add(missingValuesMap)
    }
    return missingValues
}
/**
 * Given a list of dictionaries representing data for various aircraft, find the missing values in each dictionary.
 *
 * @param data A list of dictionaries where each dictionary represents data for an aircraft. The keys of the dictionaries are the variable names, and the values are the corresponding values.
 * @return A list of dictionaries where each dictionary represents the missing values in the original data. The keys of the dictionaries are the variable names, and the values are the missing values.
 */
fun findMissingValues(data: List<Map<String, Any>>): List<Map<String, Any>> {
/**
 * Given a list of dictionaries representing data for various aircraft, find the missing values in each dictionary.
 *
 * @param data A list of dictionaries where each dictionary represents data for an aircraft. The keys of the dictionaries are the variable names, and the values are the corresponding values.
 * @return A list of dictionaries where each dictionary represents the missing values in the original data. The keys of the dictionaries are the variable names, and the values are the missing values.
 */
fun findMissingValues(data: List<Map<String, Any>>): List<Map<String, Any>> {

    val missingValues = mutableListOf<Map<String, Any>>()
    for (aircraftData in data) {
        val missingValuesMap = mutableMapOf<String, Any>()
        val variables = listOf("id", "manufacturer", "model", "year", "fuel_capacity", "passenger_capacity", "empty_weight")
        for (variable in variables) {
            if (!aircraftData.containsKey(variable)) {
                missingValuesMap[variable] = "N/A"
            }
        }
        missingValues.add(missingValuesMap)
    }
    return missingValues
}