Question: Data structures and Algorithm : QUICKSORT Just do the [C] sort even numbers in ascending order and Odd numbers in descending order DEV C++ 4.
Data structures and Algorithm
: QUICKSORT
Just do the [C] sort even numbers in ascending order and Odd numbers in descending order
DEV C++
![Data structures and Algorithm: QUICKSORTJust do the [C] sort even numbers in](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670f8f4422c11_964670f8f4418e09.jpg)

4. For option [C], the program should ask the user to input 12 elements (positive whole numbers) inside the array and then it will sort the even numbers in ascending order and odd numbers in descending order. If the user's input is not a positive whole number, then prompt "ERROR! Please input positive whole number only". Sample: Input: 1 18 15 17 14 25 30 77 48 52 64 89 Even Numbers: 14 18 30 48 52 64 Odd Numbers: 89 77 25 17 15 11. It must be a menu-driven program with the following choices: MENU: [A] Sort Numbers in Descending Order [B] Sort Elements with Negative Numbers in Ascending Order [C] Sort Even Numbers in Ascending Order and Odd Numbers in Descending Order [D] Exit The array you will use must read a maximum of 12 elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
