171k views
0 votes
Write a program that uses a structure to store the following information for a particular month at the local airport:

a. Total number of planes that landed
b. Total number of planes that departed
c. Greatest number of planes that landed in a given day that month
d. Least number of planes that landed in a given day that month

The 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 plane, 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.

1 Answer

6 votes

Final answer:

The student is asked to create a program to collect and analyze airport travel data, calculating averages, totals, and daily extremes for landings and departures across the year.

Step-by-step explanation:

The question involves writing a program that manages and calculates airport travel data using structures. The program should store information such as the number of plane landings and departures for each month and determine various statistics, including average monthly numbers of landings and departures, as well as the total annual numbers and the extremes of daily landings within the year.

Data collection is integral to this program, requiring user input for each month's figures. Once collected, the program calculates the averages and total numbers, identifying the month that experienced the greatest and least number of landings in a single day. The intricacies of data processing and user interaction are central to this programming task, reflecting the complex nature of managing real-world information in a software environment.

User Genelle
by
7.9k points