Question: PLEASE HELP ME ASAP!!! PROBLEM STATEMENT BY USING [C+++] ( MAKE A SIMPLE CODING ) Given two arrays: int list1[] = {90, 20, 80, 60,

PLEASE HELP ME ASAP!!!

PROBLEM STATEMENT BY USING [C+++] ( MAKE A SIMPLE CODING )

Given two arrays:

int list1[] = {90, 20, 80, 60, 10}; int

list2[] = {90, 200, 820, 1060, 1110};

Analyse the example of execution (refer page 3 and page 4). By using modular programming, write a program that able to perform operations according to user's input. If the user enters a letter a or A, the program will performs bubble sort on list1 and display all elements in ascending order. If the user enters a letter s or S, the program will performs binary search on list2. When the user enters a letter X or x, the program will be terminated. However, if the user enters invalid choice, the program will inform the user and ask to reenter the valid input.

Example of execution:

What you want to do (A for Sort, S for Search, X for Exit the Program:)S You want to find: 1060 1060 is found at index 3

What you want to do (A for Sort, S for Search, X for Exit the Program:) a Original order: 90 20 80 60 10 Sorted Array in Ascending Order:

10 20 60 80 90 What you want to do (A for Sort, S for Search, X for Exit the Program:) c Sorry. This is an invalid choice. What you want to do (A for Sort, S for Search, X for Exit the Program:) s

You want to find: 80 Not found

What you want to do (A for Sort, S for Search, X for Exit the Program:) A Original order: 90 20 80 60 10 Sorted Array in Ascending Order:

10 20 60 80 90

What you want to do (A for Sort, S for Search, X for Exit the Program:) x Thank you! Have a nice day!

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!