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
Get step-by-step solutions from verified subject matter experts
