Project - Working of An Airport (Simulation in Software)
The document describes a project to simulate the workings of an airport using software. It outlines 26 functions related to generating flight data, handling arrivals and departures, boarding passengers, luggage handling, customs, and other airport operations.
Project - Working of An Airport (Simulation in Software)
The document describes a project to simulate the workings of an airport using software. It outlines 26 functions related to generating flight data, handling arrivals and departures, boarding passengers, luggage handling, customs, and other airport operations.
Project – Working of an Airport(Simulation in software)
Project team name : C – Sailors
Shreejith - PES1UG23CS554 Samir G Desai - PES1UG23AM265 Shreyas G Shetty - PES1UG23CS562 Shivu K C – PES1UG23CS551
Details of functions
Name 1: void generate_flights( )
Output: Flight number,source,destination,arrival and departure time. Description: we can input the above information by creating an array of Structures and access them for displaying.
Name 2: int flight_arrival( )
Parameters : char *arr. ( “arr” will contain the flight numbers in FIFO order) Output : flight number of the plane about to land. Description: Will announce the flight landings in FIFO order (unless there is an emergency). Name 3: int emergency_landing( ) Parameters: char flight number. Output: return 1 in case of emergency
Name 4: void luggage_1 ( )
Output: will print “Luggage has been picked up” if luggage_count = 0.
Name 5: int no_of_arrivals ( )
Output: number of passengers deboarding the plane. Description: Adds to the Total no of people in the airport.
Name 6: int no_of_departures ( )
Output: numbers of passengers boarding the plane. Description: subtracts from the total number of passengers in the airport.
Name 7: void Book_Taxi( )
Parameters: destination. Output: “Passenger left the airport.” Description: also subtract from the total no passengers in the airport.
Name 8: int If_international ()
Output: 1 or 0. Description : if return 1. Passengers will be sent to customs. Name 9: int Custom () Output: 1(passenger can proceed) or 0(passenger is detained). Description: if a passenger is carrying illegal substances, he/she will be detained.
Name 10: void generate_passengers()
Output: prints passenger name,age,destination. Description: this information can be input using an array of structures.
Name 11:int X_ray()
Output: returns 1(if no illegal items found) or 0(if found). Description: 1 implies passengers will proceed.
Name 12: int boarding_pass()
Output: returns 1 or 0. Description: return 1 if x-ray() return 1.
Name 13: lounge_based_on_class()
Description: sorts the passengers into lounges based on class(econemy,first class, business)
Name 14: void specially_abled()
Output: “Specially abled passengers are boarding.” Name 15: void Business() Output: Business class passengers are boarding.
Name 16: void First()
Output: first class passengers are boarding.
Name 17:int maintence_check()
output: 1(if plane is ready) or 0(if not)
Name 18: int weather_condition()
Output: 1(if weather is good) or 0(if weather is bad).
Name 19: Void announce_departures()
Output: Will announce departure of flight (flight name, destination). Description: name of the flights to departure can be stored in an array. And can be announced in same order.
Name 20: Void luggage_2()
Output: “All luggage has been transported onto the plane.”
Name 21: void front_half()
Output: "Passengers entering the front end.” Name 22: void rear_end () Output: "Passenger entering from rear end.” Name 23: Read_and_display() Description: will read flight details (flight name,source,destination) from file or an array of structures. And display it on the screen.
Name 24: void if_late()
Output: Flight delayed by so and so minutes. Description: if a passenger be late the flight shall weight.
Name 25: void Passenger_health()
Output: 1(perfect health) or 0(not). Description: if a passenger has a bad health condition, he shall be assigned the next flight.
Name 26: if International_2()
Output: 1 or 0. Description: if 1, the passemger shall be sent to the immigration counter.