An astronomical observatory monitors asteroids using unique three-letter designations (e.g. "APO", "BEN", "CER") to track their minimum orbital intersection distances.
A Python program is required to verify if a user-entered asteroid designation is registered and lookup its orbital distance.
Each registered asteroid and its orbital distance (in Astronomical Units, AU) is stored as a record in a two-dimensional list, asteroidTable. The records are stored sorted in alphabetical order by their asteroid designation.
Open file asteroid_search.py
Write a program to meet these requirements:
asteroidTable.
asteroidTable of any length.Use comments, white space and layout to make the program easier to read and understand.
Do not add any additional functionality.
Save your amended code as asteroid_search_finished.py
159 exam-style questions on Edexcel GCSE Computer Science Algorithms, covering Constructs for solving problems, Variables, constants and data structures, Arithmetic, relational and logical operators, Tracing algorithm output with trace tables, Types of error and correcting logic errors, Standard algorithms (sorts and searches), and Evaluating algorithm fitness and efficiency. Each one has a worked solution and a mark scheme showing where the marks go.