Write a program (airport.cpp) that uses a structure to store the following information for a particular month at the local airport.
Total number of planes that landed
Total number of planes that departed
Greatest number of planes that landed in a given day that month
Least number of planes that landed in a given day that month
This program should have an array of twelve structures to hold travel information for the entire year.
The program should prompt the user to enter data for each month.
Once all data is entered, the program should calculate and output the average monthly number of landing planes, the average monthly number of departing planes, the total number of landing and departing planes for the year, and the greatest and least number of planes that landed on any one day (and which month it occurred in).
Please enter the number of planes that landed in October: 33
Please enter the number of planes that departed in October: 44
Please enter the greatest number of planes that landed on a single day in October: 3
Please enter the least number of planes that landed on a single day in October: 22
Please enter the number of planes that landed in November: 55
Please enter the number of planes that departed in November: 33
Please enter the greatest number of planes that landed on a single day in November: 22
Please enter the least number of planes that landed on a single day in November: 33
Please enter the number of planes that landed in December: 44
Please enter the number of planes that departed in December: 22
Please enter the greatest number of planes that landed on a single day in December: 22
Please enter the least number of planes that landed on a single day in December: 3
The average monthly landings for the year is 44.0
The average monthly departures for the year is 33.0
The total landings for the year is 132
The total departures for the year is 99
The greatest number of planes that landed in a single day is 33, which occurred in the month of November.
Press any key to continue.