# Data Structures

· Explain the need for complex data structures and how they are used.

· Explain the design and application of arrays and how an array simplifies program development. Support your answer with a hypothetical real-world example.

· Explain at least four benefits of modular design. Support your answer with a hypothetical real-world example.

© BrainMass Inc. brainmass.com October 10, 2019, 12:27 am ad1c9bdddfhttps://brainmass.com/computer-science/debugging/data-structures-292693

#### Solution Preview

Data Structures

Contents

The need for complex data structures and how they are used 3

The design and application of arrays and how an array simplifies program development. Support your answer with a hypothetical real-world example 4

Four benefits of modular design. Support your answer with a hypothetical real-world example 4

The need for complex data structures and how they are used

Complex data structures, like, arrays, structures, classes, vectors etc. are created to simplify programming tasks. Complex data structures add additional abstraction layers to underlying data components of a program.

For instance, if there would not be an array notion, then

Let assume we need to find the mean of count number of integer positive numbers. One of the simplest solutions would look like this in C/C++ like program:

int find_mean (int* pNums, int count)

{

int total = 0 ;

for (int i = 0 ; i < count; ...

#### Solution Summary

The need for complex data structures is explained. How complex data structures are used is explored. At least four benefits of modular design are explained. The design and application of arrays are explained.