Write a program that takes any string of upper case letters and converts it to the summation
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that takes any string of upper case letters and converts it to the summation of the ascii equivalent values of the string. For example, if the string is “AB”, the program returns the sum of the ascii value of A plus the sum of the ascii value of B. The ascii value of A is 65.
Note: you cannot hardcode the ascii values of all the letters and use them.
Related Book For
Computer Organization And Design The Hardware Software Interface
ISBN: 9780123747501
4th Revised Edition
Authors: David A. Patterson, John L. Hennessy
Posted Date: