Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Heres a C program that implements the described functionality include incl...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started