Not what you're looking for?
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 of 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
Presents a solution that takes into account inter region migration (as intra URBAN migration doesn't make much sense in the increase or decrease of overall urban population as explained above).
Solution shows how to use C multi-dimensional array to store a table of urban population data and then use it to determine the migration of population in future (after 10,20,30,40, and 50 years).
The C code is attached. Also an explanation of the calculation used is given below.
Example for the URBAN growth in the first year:
In the first year, the urban population in urban area will
internally grow by 1.1% (that is population net of births and deaths). Since the beginning ...
Purchase this Solution
Free BrainMass Quizzes
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
This quiz contains questions about C# classes and variables.
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.