Exercise: Counting Population
Exercise on counting the population of a variable-sized, multi-dimensional array of objects.
We'll cover the following...
Task
A demographist wants to find the total population within a demographic. This demographic is in a region with a temperature less than or equal to 10°C. However, with a limited programming background, the demographist has asked for your help!
Your task: is to find the sum of the population in a two-dimensional array of objects which reside in a region of temperature less than or equal to 10°C. Each object consists of the region information.
Access this course and 1400+ top-rated courses and projects.