I was wondering, how do you build a program that will assign certain values to certain characters and different values to others?
For example, if I wanted to assign a value of 1 to vowels and 2 to consonants, how exactly would I go about doing this? And how would I make it so it ignores any other characters (!@#%#$^ etc.) ?