An airport is developing a computer simulation of air-trafficcontrol that handles events
such as landings and takeoffs. Each event has a time-stamp thatdenotes the time when the
event occurs. The simulation program needs to efficiently performthe following two
fundamental operations:
– Insert an event with a given time-stamp (that is, add a futureevent).
– Extract the event with smallest time-stamp (that is, determinethe next event to process).
– Given an array (or vector) of Event objects, write c++ codethat uses interface functions using
Heap data structures to insert the events and print them in
chronological order.
– For that, you will need to write the Event class, and overloadwhatever
PayPal Gateway not configured
PayPal Gateway not configured