Help writing a program

ok a question for all you smart programmers.

I want to write a program where I input something like cdabe

and assuming
a=1
b=2
c=3
d=4
e=5

it gives me an answer/output of 34125

whats the best way to do this? I want it to be a windows app. Can I get some recommendations on whats the best way to do it, and the easiest language. I only know some c/c++. But I also want to learn others.

*note* sorry if I posted in the wrong section.
[496 byte] By [jimmyjtn] at [2007-11-19 22:39:58]
# 1 Re: Help writing a program
if it is a then return 1
if it is b then return 2
if it is c then return 3
if it is d then return 4
if it is e then return 5
Onlyone5 at 2007-11-9 12:18:10 >
# 2 Re: Help writing a program
Better still...

return input - 'a' + 1;
Kheun at 2007-11-9 12:19:10 >