Course Solutions Uncategorized (Solved) : Hi Need Help C Code Create Priority Queue Using Heap C Simulates Airline Algorithm Determi Q28402130 . . . .

(Solved) : Hi Need Help C Code Create Priority Queue Using Heap C Simulates Airline Algorithm Determi Q28402130 . . . .

 

Hi, I need help with my C++ code. Create a Priority Queue UsingHeap in C++ that simulates an airline algorithm to determine thepriority of passengers who are wait-listed for a flight. It needsto imput the user name and the time that he/she has arrived to thegate. It calculates a priority key based upon arrival time at thegate.

Code to use as reference

struct RecType

{

          intpriority;

          char name[20];

};

struct NodeType

{

          intpriority;

          char name[20];

          NodeType* next;

};

class pque

{

private:

          RecTypex[100];

          intlastIndex;

          voidmaxreheapifyUpward (RecType x [], int lastIndex);

          voidmaxreheapifyDownward (RecType x [], int lastIndex);

          intfindLargeChildIndex (int parentIndex, int lastIndex);

public:

          pque();

          voidpenque (RecType r);

          RecTypepdeque ( );

          boolisEmpty (

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post