/**
 * This function simulates the control of an aircraft. It takes the current altitude, speed, and status as input and determines the necessary actions to be taken based on certain conditions.
 *
 * - If the altitude is less than or equal to 1000 feet and the speed is less than or equal to 100 knots, the aircraft should maintain its current status.
 * - If the altitude is greater than 1000 feet but less than or equal to 5000 feet and the speed is less than or equal to 250 knots, the aircraft should climb.
 * - If the altitude is greater than 5000 feet and the speed is greater than 250 knots, the aircraft should descend.
 * - For any other combination of altitude and speed, the aircraft should perform a normal operation.
 *
 * @return The recommended action as a string.
 */
fun aircraftControl(altitude: Int, speed: Int, status: String): String {

    return when {
        altitude <= 1000 && speed <= 100 -> "Maintain current status"
        altitude in 1001..5000 && speed <= 250 -> "Climb"
        altitude > 5000 && speed > 250 -> "Descend"
        else -> "Perform normal operation"
    }
}
/**
 * This function simulates the control of an aircraft. It takes the current altitude, speed, and status as input and determines the necessary actions to be taken based on certain conditions.
 *
 * - If the altitude is less than or equal to 1000 feet and the speed is less than or equal to 100 knots, the aircraft should maintain its current status.
 * - If the altitude is greater than 1000 feet but less than or equal to 5000 feet and the speed is less than or equal to 250 knots, the aircraft should climb.
 * - If the altitude is greater than 5000 feet and the speed is greater than 250 knots, the aircraft should descend.
 * - For any other combination of altitude and speed, the aircraft should perform a normal operation.
 *
 * @return The recommended action as a string.
 */
fun aircraftControl(altitude: Int, speed: Int, status: String): String {
/**
 * This function simulates the control of an aircraft. It takes the current altitude, speed, and status as input and determines the necessary actions to be taken based on certain conditions.
 *
 * - If the altitude is less than or equal to 1000 feet and the speed is less than or equal to 100 knots, the aircraft should maintain its current status.
 * - If the altitude is greater than 1000 feet but less than or equal to 5000 feet and the speed is less than or equal to 250 knots, the aircraft should climb.
 * - If the altitude is greater than 5000 feet and the speed is greater than 250 knots, the aircraft should descend.
 * - For any other combination of altitude and speed, the aircraft should perform a normal operation.
 *
 * @return The recommended action as a string.
 */
fun aircraftControl(altitude: Int, speed: Int, status: String): String {

    return when {
        altitude <= 1000 && speed <= 100 -> "Maintain current status"
        altitude in 1001..5000 && speed <= 250 -> "Climb"
        altitude > 5000 && speed > 250 -> "Descend"
        else -> "Perform normal operation"
    }
}