This is a modification of Homework 14. All of the specifications in that assignment also apply to this assignment. Instead of using two parallel arrays to store the data (the letters and the numerals), you are to use an array of records. Each record has two components; a letter and a numeral.
For each letter in a sequence of letters, display the corresponding telephone numeral. The sample run below indicates what your program should look like when it executes.
Given a sequence of letters, this application will find the corresponding digits on the telephone. Enter a sequence of letters: Asbury The letter A corresponds to the numeral 2 The letter s corresponds to the numeral 7 The letter b corresponds to the numeral 2 The letter u corresponds to the numeral 8 The letter r corresponds to the numeral 7 The letter y corresponds to the numeral 9 Press Enter to return to Quincy...
A sequence of letters (either uppercase or lowercase). The user will enter the letters all at once on the same line. You may assume that the user enters only letters of the alphabet.
Each of the numerals '2' through '9' in a telephone "number" corresponds to three or four letters of the alphabet as shown below. For each letter entered by the user, your program should determine the corresponding numeral.