Attributes and implementing other methods related heap class isempty
Faculty of Engineeringand Architecture
ComputerEngineeringDepartment
Figure 1. Heap Object Representation
Implement operations that are listed below:
Add element according to id value of the heap object (15
points).
Put commands to your source code (10 points).
Creating Heap struct (5 points) and constructor (5 points).
Figure 3. Adding an item to Heap Hint:You can use struct for creating Heap objects.
Figure 5. Displaying Heap objects




