Question 2The potential of a word is found by adding the ASCII value of the alphabets.(ASCII values of A to Z are 65 to 90).Example: BALLPotential = 66 +65 + 76 + 76 = 283Write a program to accept a sentence which may be terminated by either".","? "or"!"only.The words of sentence are separated by single blank space and are in UPPER CASE. Decode thewords according to their potential and arrange them in ascending order of their potential strength.Test your program with the following data and some random data:Example 1:INPUT:HOW DO YOU DO?OUTPUT:HOW = 238DO = 147YOU = 253DO = 147DO DO HOW YOU
Answers
Answered by
1
Answer:
jwhddjwkdodkekwkdkdkkdkeke. wjejdjd
Similar questions