Question: Write a program that prompts a user for three characters. The user input may be duplicate. The program must validate the user input and re-prompt

Write a program that prompts a user for three characters. The user input may be duplicate. The program must validate the user input and re-prompt until a valid input is entered. The program compares those three characters and prints the largest and the smallest characters on screen.

Example 1: Input 1: C Input 2: B Input 3: A Output: C is the largest and A is the smallest.

Example 2: Input 1: A Input 2: B Input 3: a Output: a is the largest and A is the smallest.

Example 3: Input 1: S Input 2: 1 Please try again! Input 2: 500 Please try again! Input 2: M Input 3: 3 Please try again! Input 2: C Output: S is the largest and C is the smallest.

write this in C++

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!