Question: C sharp please Create a HashTable class that stores two-letter state abbreviations as keys and the spelled-out state names as values. Your class should have

C sharp please

Create a HashTable class that stores two-letter state abbreviations as keys and the spelled-out state names as values. Your class should have an add(key, value) method, a find(key) method, and a private hashf method that contains the simple hash function of adding the key's character ASCII values. The hash table itself should be an array of arraylists.

To find the ASCII value of a string, take a single character from the string and convert it to int. Here is a loop that displays all the ASCII values of a string:

string s = "abc";

foreach (char c in s) {

Console.Write((int)s);

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!