Question: IN C++.Your manager gave a task to write a program that takes weights of three boxers (as integer values) and check if they are sorted
IN C++.Your manager gave a task to write a program that takes weights of three boxers (as integer values) and check if they are sorted by their weights. If the weights are sorted, then it prints Ascending order, Descending order, or Neither. If two or more weights are the same, they are considered as neither. The users are well trained, and they will enter weights separated by spaces.
Expected output 1 (bold is user input) Enter boxers' weights 162 180 225 Ascending order Expected output 2 (bold is user input) Enter boxers' weights 225 180 162 Descending order Expected output 3 (bold is user input) Enter boxers' weights 162 135 225 Neither
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
