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 inascending order and Odd numbers in descending orderDEV C++ 4. For option

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

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 Programming Questions!