As noted above, text entry using a mobile phone keypad is possible using. No matter what letter I input, also the final line else ("invalid char " + x) ĭoesn't work, it just prints out the digit is 2 with x being the thing I enter. Due to trade-offs in both size and compatibility, most mobile phones today are equipped with a 12-key keypad (Figure 1). The Qwerty keyboard (Figure 5b) and telephone keypad (Figure 5c) represent two. Range of full-feature to economy phones, cellphones, and mobiles configured to market. FREE Shipping on orders over 25 shipped by Amazon. Wholesale keypad mobile phone and Mobile Phones from top brands. How do you get letters on your phone keypad To type the letter A, tap the 2key once. So dialing 1-800-555-APPL would be 1-80 (just an example).
That number can be any of those 3 or 4 letters, so 1 press of '2' corresponds to either an 'A' 'B' or 'C'.
I'm using the ASCII for my if/else and it compiles and works but always prints (x+"'s corrosponding digit is " + 2) Small Bluetooth Keyboard and Mouse Combo Protable Rechargeable External Cordless Wireless Keyboard for Android Tablet Cell Phone Surface Samsung Smartphone iPhone iPad Mini Pro Air MacBook (Black) 180. As you can see on the keypad, each number from 2-9 corresponds to 3 or 4 letters. I converted the user input into Uppercase then into ASCII. I'm working on an assignment for a class in which I need to convert a user input of a letter into the number on a phone.