CSC220 Lab 7
Due: 10:59AM, Tuesday, November 16

Your task is to write a code for an enhanced priority queue, based on the partial code provded.

Download KWOPriorityQueue.java.

This is a priority queue implmented using a binary heap. Some methods are missing in the code:

We want to test the correctness of the above queue class using a class for storing a word and a number. WordCountInt.java is an interface written for storing such pair of data. Implement this interface to write a class WordCount.java. Write a program that tests the queue using WordCount as the class to be stored. You don't have to develop a Comparator of WordCount, KWOPriorityQueue will default to the compareTo method as required in WordCountInt.java.