Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1. Write a C++ program that will implement all of the sorting algorithms.

The program should


accept different unsorted data items from the user and sort using all algorithms and should tell
which algorithm is efficient for that particular unsorted data item.

The implementation is some phase:

A. Accept the data from the user interface

B. Select the sorting algorithm for sorting the data.

C. As the user types A “simple sort algorithm the following output will be displayed”
2. Write a C++ program that will implement all of the Searching algorithms. The program should
accept different data items from the user and target data and search using all algorithms and should
tell which algorithm is efficient for that particular data item for searching the element.

The implementation phase:

A. Accepting the data item, array size, and target value from the user as follows:

B. Select the type of searching algorithm as follows:

C. The output value also showing on the above question number 1

Deadline next week Tuesday 02/05/2015 E.C.

Working in group

Total mark 15%

You might also like