Created
January 11, 2020 15:02
-
-
Save smjonas/499c1b5325267687ff16e2837b2528a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct { | |
char *icao; | |
char *iata; | |
float lattDegree; | |
float longDegree; | |
int height; | |
} Airport; | |
typedef struct { | |
char *flightNumber; | |
Airport *to; | |
Airport *from; | |
Time departure; | |
Time arrival; | |
} FlightPath; | |
typedef struct { | |
char *airlineName; | |
char *airPlaneName; | |
char *airVehicleRegistration; | |
FlightPath flightPaths[5]; | |
} Airline; | |
typedef struct { | |
int hours; | |
int minutes; | |
} Time; | |
void InputTime(Time *time, int hours, int minutes); | |
void InputAirport(Airport *airPort, char *icao, char *iata, | |
float lattGrad, float longGrad, int height); | |
void InputAirline(Airline *airline, char *airlineName, | |
char *airPlaneName, char *airVehicleRegistration); | |
void InputFlightPath(FlightPath *flightPath, char *flightNumber, | |
Airport *to, Airport *from, Time departure, Time arrival); | |
void OutputAirport(); | |
void OutputAirline(); | |
void OutputFlightPath(); | |
void OutputTime(); | |
void CalculateDuration(Airline *airline); | |
void CalculateDistance(Airline *airline); | |
double sindeg(double x); | |
double cosdeg(double x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment