Write a C++ program which declares a 5 x 10 characterarray, prompts the user to enter string literals (consisting of only alphabets) into this array and counts the value of each string (row). For counting value of strings, assume a/A=1, b/B=2.....z/Z=26. For instance, if the string at row 0 is ‘hello’, it’s value should be calculated as (h = 8) + (e = 5) + ( l = 12) + (l = 12) + (o = 15) = 52. Once the values have been calculated, your program should print the string with the highest value on screen.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here