Create a c++ program with heaps. It should receive input until they insert "quit". When the user inputs "add" followed by a number it should store the number. When the user says "list" it should print the numbers inserted in a list from max to min. when the user enter "deletemax" the biggest number should be deleted from the stored numbers. The user should be able to continue inserting what they want to do until they want to quit.
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-37623.pdf
Comments
Leave a comment