Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C++ program that allows the user to: 1) Enter a word and convert it to a

ID: 658088 • Letter: W

Question

Write a C++ program that allows the user to:

1) Enter a word and convert it to a sequence of numbers Example: User input: Buffalo Output: 2833256

Write and use class KeyPad as described below:

? Data members: Include data members for

o Number (a string consisting of a series of numbers)

o Word (a string consisting of a series of letters)

? Member functions: Include member functions for

o Reading Numbers from the keyboard and checking if they are valid (2-9)

o Reading Words from the keyboard, converting to lowercase, and checking if they are valid (lowercase a-z) o Converting Words to Numbers o Converting Numbers to Words and displaying all possible words from USDiscitionary.txt

o You can add additional member functions if you wish

? Non-member functions: Include non-member functions for

o Converting words to all lowercase letters

o You can add additional non-member functions if you wish.

? Main function:

o The main function should use class KeyPad and should give the user the three options as described in the Program Description section.

o The user should be able to enter words with any combination of uppercase and lowercase letters.

o In addition to the 7 messages on the instructor

Explanation / Answer

you given dictionary

----------------------------------------------------------------------

2

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote