Menu

[Solved] Exercise 3 Write Python Program Inputs Three Ie Numbers Computes Average Sort Ascending Or Q37251558

plz use def functionusing spyder programto solve the givenalso solve using loops.
Exercise 3: Write a Python program that inputs three ie numbers, computes their average and sort them in ascending order. NumExercise 3: Write a Python program that inputs three ie numbers, computes their average and sort them in ascending order. Numbers can be positive andor negative, but each must be a distinct number (fi.e. all are different). Each number should be input and returned by a function named getValuet… that receives a prompt message. A second function ascsortNavgf…) should sort numbers and display them on screen in ascending order. It receives three numbers as parameters and retums their average (loat) lo function main…) which then prints the average with two decimal places. Please input 3 numbers: 30 30 20 Invalid input, try again Please input 3 numbers: 17-58 Sorted: -5 8 17 Average 6.67 Figure 3. Exercise 3 Sample Run Show transcribed image text Exercise 3: Write a Python program that inputs three ie numbers, computes their average and sort them in ascending order. Numbers can be positive andor negative, but each must be a distinct number (fi.e. all are different). Each number should be input and returned by a function named getValuet… that receives a prompt message. A second function ascsortNavgf…) should sort numbers and display them on screen in ascending order. It receives three numbers as parameters and retums their average (loat) lo function main…) which then prints the average with two decimal places. Please input 3 numbers: 30 30 20 Invalid input, try again Please input 3 numbers: 17-58 Sorted: -5 8 17 Average 6.67 Figure 3. Exercise 3 Sample Run

Expert Answer


Answer to plz use def function using spyder program to solve the givenalso solve using loops…. . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *