Build a phone area code look up program
-
Create a dictionary (hash) with 10 city names, where the city name would be a string and the key, and the area code would be the value
-
Display the city names to the user which are available in the dictionary
-
Get input from the user on the city name (hint: use gets.chomp method)
-
Display area code based on user's city choice
-
Loop - keep the program running and prompt the user for new city names to lookup
-
Method to look up area code, this will take in a hash of the dictionary and the city name and will output area code
-
Method to display just city names