I am coding a program that uses an array of structures with a menu.
I need to calculate and output the average number of landing planes, the average 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 in one day (and which month it occurred in).
#include <iostream>
using namespace std;
struct MonthlyInfo {
int numLand;
int numDepart;
int maxNumLand;
int minNumLand;
};
MthlyInfo...
How can I use an array of structs to calculate and display data about departing and landing planes?
I need to calculate and output the average number of landing planes, the average 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 in one day (and which month it occurred in).
#include <iostream>
using namespace std;
struct MonthlyInfo {
int numLand;
int numDepart;
int maxNumLand;
int minNumLand;
};
MthlyInfo...
How can I use an array of structs to calculate and display data about departing and landing planes?