Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Using C language please! image text in transcribed
image text in transcribed
. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Who owns your ideas?

Answered: 1 week ago