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...


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.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here