Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed  


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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions

Question

1. Letters and diaries in history.

Answered: 1 week ago

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

What is a real - time operating system ( RTOS ) ?

Answered: 1 week ago