Question: Using C language please! . Exercise 3: Sort three numbers Exercise Oblectives . Using simple input and output statements Using nested selection structures Problem Description:

. Exercise 3: Sort three numbers Exercise Oblectives . Using simple input and output statements Using nested selection structures Problem Description: Add your name, your University ID number and section number as a comment in this program. Prompts the user to input three floating point numbers. . Read the three numbers. Prompts the user to input a character that represents one of the following choices for sorting numbers: A for increasing (non-decreasing) order. B for decreasing (non-increasing) order. Reads in the choice (A or B) . If the user entered an incorrect choice, a warning message is displayed as follows: The only available choices are: (A, B) If the user's choice is A: The program prints the three numbers in increasing (non- decreasing) order If the user's choice is B: The program prints the three numbers in decreasing (non- increasing) order. o . Sample output : Please Input three numbers: 10.3 2.2 4.1 How would you like to sort numbers? A. Increasing (non decreasing) order. B. Decreasing (non increasing) order. What is your choice? B The three numbers in Decreasing (non-increasing) order: 10.3 4.1 2.2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
