Question: Write a Python program that creates a menu-driven SORTING ALGORITHM application. You should implement this program using functions. This application is menu-driven by asking the

 Write a Python program that creates a menu-driven SORTING ALGORITHM application.

Write a Python program that creates a menu-driven SORTING ALGORITHM application. You should implement this program using functions. This application is menu-driven by asking the user to choose an option to sort a key-in values (integer or letters). It should also displays the PASS result per iteration and produces the final SORTED LIST output at the end of the program execution. See details of the MENU-DRIVEN SORTING ALGORITHM APP. Your program should validate all data to be process and displays an appropriate error message. Assume that option 1 was selected: It should display: How many elements are there on your list? Enter type of elements? [1] INTEGERS [2] LETTERS (Upper-case only) Enter sorting mode: [1] ASCENDING [2] DECENDING [3] APHABETICALLY How many elements are there on our lists? 8 Enter type of elements? [1] INTEGERS [2] LETTERS (Upper-case only) 1 Enter the sorting mode: [1] ASCENDING [2]DESCENDING [3] ALPHABETICALLY =>2 Enter your 8 INTEGERS NOW (END EACH INTEGER BY AND ENTER KEY) 7 5 2 4 10 1 6 3 PASS 1: 7,5,4,10,2,6,3,1 PASS 2: 7,5,10,4,6,3,2,1 PASS 3: 7, 10, 5, 6, 4, 3, 2, 1 PASS 4: 10, 7, 6, 5, 4, 3, 2, 1 PASS 5: 10, 7,6,5,4,3,2,1 FINAL SORTED ELEMENTS 10,7,6,5,4,3,2,1 Do you want to try again? [y] if yes, the program redisplay the main menu. Otherwise, program exits

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!