In this assignment, you will be simulating an Air Traffic Control tower. This program uses data of the Airplane class type. This is a custom class that you will use for this activity.

Each Airplane object represents an actual airplane that is detected by the tower at a particular instance in time. The Airplane object has a number of fields: a horizontal distance in miles from the tower (as a positive decimal number), a bearing (compass direction) from the tower (as an integer from 0 to 360), a positive altitude (height) in feet (as a positive integer) and a call-sign which consists of letters, numbers, and symbols.

The Airplane class has the following constructors and methods:

Constructors:


Information on the Base:

1. Airplane() 
2. Airplane(String cs, double dist, int dir, int alt)

Key: 1 corresponds to Airplane, denoted with 1 below; same applies to 2 and so forth denoted by the nth #.


  1. For the first one, ‘Airplanes’ creates an Airplane with call sign “AAA01” located on the landing strip: 1 mile due north (0°) of the tower at an altitude of 0 feet.
  2. Airplane (String cs…)