Purchase Solution

Multidimensional Arrays and Vectors

Not what you're looking for?

Ask Custom Question

I need the following in C++. The output needs to be in a table format similar to the following sample:

A demographic study of the metropolitan area around Dogpatch divided it into three regions (urban, suburban, and exurban) and published the following table showing the annual migration from one region to another (the numbers represent percentages);

Urban Suburban Exurban
Urban 1.1 0.3 0.7
Suburban 0.1 1.2 0.3
Exurban 0.2 0.6 1.3

For example, 0.3 percent of the urbanites move to the suburbs each year. Using a two-dimensional array with an enumerated type fo the indices to store this table, write a program to determine the population of each region after 10,20,30,40, and 50 years. Assume that the current population of the urban, suburban, and exurban regions are 2.1, 1.4, and 0.9 million, respectively.

Purchase this Solution

Solution Summary

Using multidimensional arays and vectors in C++ is demonstrated.

Purchase this Solution


Free BrainMass Quizzes
Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.

Probability Quiz

Some questions on probability

Exponential Expressions

In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.

Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.

Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.