Using C++ Given the following class definition S const unsigned… Using C++Given the following class definition Sconst unsigned HT_SIZE = 10; // Hash Table Sizestruct Symbol{ string name; Symbol * next; };class Table { // Symbol Table classpublic:Table(); // Initialize the hash table with NULL pointersSymbol* clear(); // Clear symbol tableSymbol* lookup(string); // Lookup name sSymbol* lookup(string,unsigned h);// Lookup s with hash hvoid insert(string s); // Insert s with its hash value in the tableSymbol* lookupInsert(string); // Lookup and insert sunsigned hash2(string s);void travers();private: Symbol* ht[HT_SIZE]; // Hash tableSymbol* first; // First inserted symbolSymbol* last; // Last inserted symbol };a. Develop the function insert that insets a symbol in a hash table where the hash table size is given by the constant HT_SIZE in the above definition [10 marks]b. Develop an application to test the class implementation that: i. reads N symbols from the input, ii. store them in the hash table, iii. search for M symbols and return the symbol name if found and a zero if it was not found, iv. traverse the table to display all symbols storedComputer Science Engineering & Technology C++ Programming
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more