Please Copy Answers Post Needs Code Really Works Please Write C Language Using Following U Q37269526

Please not copy from other answers and post, I needs the codethat really works!!!

Please write in C++ language.

Using the following UML diagram, write a class that implements apriority queue using a heap. Place your solution in it’s own headerfile named PQueue.h.

xid-55761027_1

ATTRIBUTES

  • heap – a pointer that holds a dynamically allocated array ofintegers.
  • size – stores the size of the array.
  • bottom – keeps track of the bottom of the heap.
  • constructor – accepts an integer as it’s only argument anddynamically allocates an array with that many elements, stores theargument in size, and initializes bottom to -1. Address of the newarray is stored
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.