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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!