Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how do i soove these ? structed programming language Exercise 3: Sort three numbers Exercise Objectives Using simple input and output statements Using nested selection
how do i soove these ? structed programming language
Exercise 3: Sort three numbers Exercise Objectives 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 Displays your information properly: student name, id, section number, instructor name, and student phone number Prompts the user to input three floating point numbers, Reads the three numbers. Prompts the user to input a character that represents one of the following choices for sorting numbers: o increasing (non-decreasing) order. o decreasing (non-increasing) order. Reads in the choice (A or B) Displays your inomuon properly. Sie ham, u, SCUOI HUTID, SUULIUI name, and student phone number Prompts the user to input three floating point numbers. Reads the three numbers. Prompts the user to input a character that represents one of the following choices for sorting numbers: o increasing (non-decreasing) order. o 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: Increasing (non-decreasing) order Decreasing (non-increasing) order. 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 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started