When a drone launch sequence is initiated, the telemetry parameters are verified before takeoff. The program must validate the following criteria:
droneID must not be emptymode must be either "manual" or "autonomous"altitude must be between 150 and 500 (inclusive)If any invalid data is found, "ABORT" is displayed. If all data is valid, "READY" is displayed.
Complete the program to validate the inputs.
You must use either:
droneID = input("Enter drone ID: ")
mode = input("Enter flight mode: ")
altitude = input("Enter operational altitude in meters: ")
telemetryValid = False
14 exam-style questions on OCR GCSE Computer Science Defensive design. Each one has a worked solution and a mark scheme showing where the marks go.