Question: C++ please. Write a program that reads the letter codes of a telephone number pad and converts them into their corresponding number patterns. a. One

Write a program that reads the letter codes of a telephone number pad and converts them into their corresponding number patterns. a. One acceptable form of output: Sample input: Sample Output: 800-MATTRESS 800-628-8737 (leave off the last "S") 800-mattress 800-628-8737 (leave off the last "S") Another acceptable form of output: Sample input: Sample Output: 8 8 OOHH COCO NO R E S 8 7 3 7 The letters 'A' to '2' and to 1z' should print the corresponding telephone digit. This program should use two levels of loops. One loop should prompt the user to ask them if they wish to convert a telephone letter pattern. The user should be prompted when the program first begins execution and after each completed execution. (1) If they do wish to convert a telephone letter pattern, the program should execute again. (2) If they do not wish to convert a telephone letter pattern, the program should terminate Valid values that the user can enter as to whether they wish to execute the program are: 'Y' or 'y' or 'N' or 'n' (a) All other responses should error out and user the should be requested to enter a valid response. The other loop should convert a 10 character letter pattern into the corresponding number pattern. The user should be prompted to enter the 10 letter sequence. Only the first 10 characters should be able to be entered and converted. The valid patterns for letter to number conversion of the telephone are: 7: 1 2: ABC 3: DEF 4: GHI 5: JKL 6: MNO PQRS 8: TUV 9: WXYZ * 0 # A counter should keep track of how many telephone button conversions have been processed on and printed on the report. A solid line of separators such as the **** or ## ## should be placed between each telephone button conversion done. Place a good descriptive heading at the top of the report below the required first several output lines indicated at the top of this document. At least three separate conversions should be processed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
