You're helping a small airport design a simple system to assist their air traffic controllers, and your task is
to develop and test a class for keeping track of aircraft in the area in a file aircraft.py.
First, create an Aircraft class with the following specifications:
Attributes
• aircraft_id (this is an alphanumeric identification code. For example, N121PP or N898TS)
altitude (this is the aircraft's altitude above sea level, in feet).
• distance (this is the aircraft's distance from the airport, in miles).
A constructor with parameters for each of the three attributes
Methods
• increase_altitude, which adds 500 to the aircraft's altitude
• decrease_altitude, which reduces its altitude by 500
• move_closer, which decreases distance by 10
• move_farther, which adds 10 to the distance
• print_position, which prints out the aircraft's id, altitude, and distance
Next, write code in the main section of your script (not in the class definition) that prompts the user to
input information for two aircraft and creates two objects of the Aircraft class using their responses.
Then, call each of the methods at least one time (making sure at least one method is called on each
object). Finally, use the print_position method to output information about both objects.