Question: C++ Problem Statement Write a program that - First, asks the user to choose whether sorting order is in increasing order ('I' or 'i') or

Problem Statement Write a program that - First, asks the user to choose whether sorting order is in increasing order ('I' or 'i') or decreasing order ('D' or ' d '); if the user inputs other character, quit the program directly. - Second, reads three integer numbers and sorts these three numbers in the order according to the choice from first step. - Last, reports that three numbers are in lenient or strict increasing/decreasing order. Only when three numbers are all different, the ordering is in strict, otherwise it is a lenient ordering. Note that when three numbers are all the same, it is lenient, but it can be lenient increasing or lenient decreasing depending on the choice from first step. (For this Lab assignment, you are not allowed to use any sorting algorithms or sort) function yet, for the purpose of practicing conditional statement) Sample output 4 : Your wish is my command! I will sort three numbers under your wish: Enter I for increasing ordering, D for decreasing order (I or D): It Please enter three integer numbers: 5748324 Numbers are sorted in increasing order: 324857 Numbers are in strictly increasing order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
