Question
Write a program in C++ that prompts the user to input three characters (A-Z and a-z), then prints the characters in alphabetical order and meets
Write a program in C++ that prompts the user to input three characters (A-Z and a-z), then prints the characters in alphabetical order and meets the following requirements:
The program reads one input character at a time.
The program checks validity of input character right after it is entered. If valid, the program outputs confirmation message: You have entered X, where X is the input character, and continues execution. If not, the program outputs an error message: You have entered an invalid character. and stops execution.
When outputting the final outcome in alphabetical order, upper-case characters come first and then followed by lower-case characters.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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