B
Bill Gowan
I had a teacher ask me if I could write a program that would convert words
to numerical equivalents. It's been a long time since I have done
programming so I am asking for help.
She is going to tell the kids they need to come up with a word that equal
(lets say) 30.
We always assume that a=1 b=2 c=3 d=4 etc.
Can anyone help me?
I managed to get the word that was entered and the length of the word. I
think the next think I have to do is convert the word into an array and then
convert each letter into a number.
The place I am stuck is converting the word into an array that I can work
with.
Thnaks in advance for any help!
to numerical equivalents. It's been a long time since I have done
programming so I am asking for help.
She is going to tell the kids they need to come up with a word that equal
(lets say) 30.
We always assume that a=1 b=2 c=3 d=4 etc.
Can anyone help me?
I managed to get the word that was entered and the length of the word. I
think the next think I have to do is convert the word into an array and then
convert each letter into a number.
The place I am stuck is converting the word into an array that I can work
with.
Thnaks in advance for any help!