Question: using C language Exorcise 3 Exerclae Oblectives Using simple input and output statements Using nested selection structures Problem Description: Add your name, your University ID

Exorcise 3 Exerclae 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 choles for sorting numbers: o 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. I If the user's choice is B: The program prints the three numbers in decreasing (non- increasing) order Samplo output: Please input three numbers:22.5 4.2 10.1 22 . ** 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 Increasing (non-decreasing) order: 40 HE 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. I 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. o B for decreasing (nonincreasing) 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 Sample output: Please input three numbers:22.5 4.2 10.1 ** How would you like to sort numbers? A. Increasing (non-decreasing) order. B. Decreasing (non- increasing) order. - What is your choice? The three numbers in increasing (non-decreasing) order: 4.2 10.1 22.5 06
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
