Lab 10 Solution

$30.00 $24.00

Description: I have supplied you with the template for a heap class (heap.h). You will write a program that creates a heap, and then asks the user to enter values which you will put in the heap (add as many as you like, at least 8), and then display the heap Then your program will…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:
Tags:

Description

5/5 – (2 votes)

Description: I have supplied you with the template for a heap class (heap.h). You will write a program that creates a heap, and then asks the user to enter values which you will put in the heap (add as many as you like, at least 8), and then display the heap

Then your program will display a menu with the following choices, and perform the appropriate actions

  1. Display the heap
  2. Add an item to the heap
  3. Remove the largest item
  4. Exit

The program will continue until the user chooses to exit, at which time it will display the heap and exit (and yes, you should have input validation)

For EXAMPLE:

Lab 10 Solution
$30.00 $24.00