Implementation and application of data


Assignment : Data Structures

In this assignment, you will apply data structures in an OOP program.

Write the following programs:

Elementary Data Structures

Suppose you created a video project that has two data structures-an array of strings and a ListView control. You used the Sort() method of the array class to put the film names in ascending order. Then the program populated lstNames with the ordered strings from the array.

In this assignment, you will:

Populate the list using a different technique. Within the Form1_Load event, comment out the Sort() method.

Change the Sorting property of lstNames to Ascending.

Change the Sorting property of lstNames to Descending to display the names in lstNames sorted automatically.

Save the program as Elementary.cpp.

Implementation and Application of Data Structures

In this assignment, you will write a program that:

Converts the bubble sort, changing the outer loop from a for loop to a while loop, so that an early exit is possible when the film names list becomes sorted.

Uses a Boolean variable to control the outer loop.

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Implementation and application of data
Reference No:- TGS01187896

Now Priced at $40 (50% Discount)

Recommended (94%)

Rated (4.6/5)

A

Anonymous user

3/28/2016 7:08:47 AM

The assignment is all about applying the data structures in an OOP program. In this, you have to do the following programs. 1) Populate the list employing a different method. In the Form1_Load event, comment out the Sort() method. 2) Modify the Sorting property of lst Names to Ascending. 3) Modify the Sorting property of lst Names to Descending to display the names in lst Names sorted automatically. 4) Save the program as the Elementary.cpp. 5) Perform the Implementation and Application of Data Structures 6) Write down a program which: Transforms the bubble sort, changing the outer loop from a for loop to the while loop, in such a way that an early exit is possible if the film names list becomes sorted. 7) Employs a Boolean variable to control the outer loop.