Hello everyone. Im COMPLETELY new to programming and Ruby and i would like to know how i can make this happen:

What I want from my program is to understand letters as numbers then add up names into numbers and then retreive previously written names when number x is given.

For example
A=1, B=2 C=3 K=4 etc.
then i write BACK
the program adds letters up(2+1+3+4) and prints 10.
then i write KCAB, program adds up again into 10...
then i write ABCK, program adds, prints 10...
And when i open the program next time and write something like DIG ME 10
it prints
BACK
KCAB
ABCK

Thats all what i want the program to do for starters, alphabet=number conversion, adding names into numbers, storing written words
and digging them up with the number. Can anyone give a newbie a SIMPLE answer how?

THNX.

How are you going to read integer values for different letters ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.