Question: c + + Define a generic function called CheckOrder ( ) that checks if four items are in ascending, neither, or descending order. The function
c Define a generic function called CheckOrder that checks if four items are in ascending, neither, or descending order. The function should return if the items are in ascending order, if the items are unordered, and if the items are in descending order.
The program reads four items from input and outputs if the items are ordered. The items can be different types, including integers, strings, characters, or doubles.
Ex If the input is:
bat hat mat sat
the output is:
Order:
Order:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
