Question: Write a C# console application that allows me to type in any word and get the value of the word. You will calculate the value

Write a C# console application that allows me to type in any word and get the value of the word. You will calculate the value of the word by assigning a value to each letter starting with A going through Z. You will use the position of the letter as it appears in alphabetical order. The values for each letter will start as follows:
A =1
B =2
C =3
D =4
E =5
F =6
G =7
.......
Z =26
Using this series, the value of the word "CAB" would be equal to 6. This is because C =3, A =1, and B =2; 3+1+2=6.
I should be able to type in any word and get a single number value back that represents the "value" of the word.
Below are some test words that you can use to validate that your code is working properly. I will also test your code with other words.
ABC 6
ABA 4
EGG 19

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!