Console application in a windows form: 10 digit telephone number problem
I am working on this telephone problem and i need serious help. I am new to C# and this is very difficult for me. I would greatly appreciate in-depth help and guidance.
people sometimes give their telephone numbers using one or more alphabetic characters. Write a program that accepts a 10-digit telephone number that may contain one or more alphabetic characters. Display the corresponding number using numberals. The numbers and letters are associated as follows on your telephone.:
if the user enters a character that is not on the telphone as part of the number, display a message indicating that the value does not match a number. Allow both upper- and lowercase characters to be entered.
Re: Console application in a windows form: 10 digit telephone number problem
The exercies is to help you learn. You will learn nothing if someone else does it for you.
Post some code and someone may help by pointing out where you are going wrong.
Basically you just need to write some code that will compare what the user entered to the valid characters. If they entered A or B then that would be a 1 if they entered a 1 that would be a 1 if they entered a $ display an error message.