How to change alphabetical phone numbers into numeric form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jesse Shellabar
    New Member
    • Jan 2011
    • 1

    How to change alphabetical phone numbers into numeric form?

    I need this as basically as possible. This got sprung on me with only two days to work on it, and I really just don't have the time. All I need is to figure out how to write a program to change the alphabetical number (ex. 1-800-FLOWERS) into the numeric version (1-800-356-9377). Again, I really don't know much about this, the simpler the better! Any required programs would be helpful too. I've tried netbeans but it doesn't seem to compile as well. Thank you!
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Every letter is a specific number (the reverse is not true) so a simple look-up table (array) holding the number for each letter and a simple substitution algorithm should solve this problem.

    Comment

    Working...