“AG Airlines”: Flight Data Analysis and Optimization Program
The airline company “AG Airlines” conducted 20 flights from Athens to Crete in December. Develop a program that:
- For each flight, it will display the name of the airplane that conducted it, the day of the month (1-31), and the percentage of flight occupancy, ensuring that the day of the month is a number from 1 to 31 and the percentage of occupancy is a number from 0 to 100.
- It will calculate the average occupancy of the flights.
- It will display the names of the airplanes that conducted flights with occupancy at least equal to the average occupancy of all flights.
- It will display the days of the month on which the flights with the minimum occupancy took place, as well as which airplanes conducted them.