Question: Please code in C++ 2. Declare a hash table of size 29 elements. 3. To hash your currency objects into the hash table, use the
Please code in C++

2. Declare a hash table of size 29 elements. 3. To hash your currency objects into the hash table, use the pseudorandom hash scheme - (m*w+ n*f) % size - where size = 29, m = 2, n = 3, w = whole value, f = fractional value. 4. For collision resolution, use quadratic probing in the same direction always. Remember to circle around to the start of the array if needed. 5. Your main will first load the data file into the hash table and print the number of data items loaded, load factor and number of collisions. 6. Then it will ask the user in a loop to enter a Dollar to search for. If the Dollar object is found in the hash table, it will print the index where found, otherwise it will print 'Invalid Data'. Then it will ask the user if they want to check again or end the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
