Question: Write a C++ program that ask the user to Enter 3 characters. If they are all small letter, the program output the message all
Write a C++ program that ask the user to Enter 3 characters. If they are all small letter, the program output the message "all small" and output the sum of their ascii codes. If the first and the last letters are from the first 10 alphabets, either small letter or capital letter (A-J or a-j), the program output the message "First and last letters from first 10" and output the sum of the first and the last letter ascii codes. If the second and the last letters are from the last 10 alphabets, either small letter or capital letter (Q-Z or q-z), the program output the message "Second and Last letters from last 10" and output the sum of the second and the last letter ascii codes. If not any of the previous cases apply, the program should output the message "You have entered in appropriate 3 letters". Sample Input / Output Enter three letters: abc All small The sum of all letter ASCII codes is 294 First and last letters from first 10 The sum of the first and the last letter ascii codes is 196
Step by Step Solution
There are 3 Steps involved in it
Heres a C program that implements the described functionality include incl... View full answer
Get step-by-step solutions from verified subject matter experts
