Question: CONT. that cell s population will increase by 1 in the next time step If a cell has a population of 2 and is adjacent
CONT. that cells population will increase by in the next time step
If a cell has a population of and is adjacent to at least four cells with a population of at least that cells population will increase by in the next time step
If a cell has a population of and is adjacent to at least six cells with a population of at least that cells population will increase by in the next time step
If a cell has a population of and is adjacent to at least eight cells with a population of at least that cells population will increase by in the next time step
The residential population provides workers to the industrial and commercial zones, but each worker can only have one job
Industrial
If a cell has a population of is adjacent to a powerline in the current time step, and there are at least available workers, that cells population will increase by in the next time step and the available workers are assigned to that job
If a cell has a population of is adjacent to at least one cell with a population of at least and there are at least available workers, that cells population will increase by in the next time step and the available workers are assigned to that job
If a cell has a population of is adjacent to at least two cells with a population of at least and there are at least available workers, that cells population will increase by in the next time step and the available workers are assigned to that job
If a cell has a population of is adjacent to at least four cells with a population of at least and there are at least available workers, that cells population will increase by in the next time step and the available workers are assigned to that job
A cell produces pollution equal to its population, and pollution spreads to all adjacent cells at a rate of one less unit of pollution per cell away from the source
The industrial population provides goods to the commercial zones, at a rate of one good per population, but each good can only be sold at one commercial cell
Commercial
If a cell has a population of is adjacent to a powerline in the current time step, there is at least available worker, and there is at least one available good, that cells population will increase by in the next time step and the available worker and available good are assigned to that job
If a cell has a population of is adjacent to at least one cell with a population of at least there is at least available worker, and there is at least one available good, that cells population will increase by in the next time step and the available worker and available good are assigned to that job
If a cell has a population of is adjacent to at least two cells with a population of at least there is at least available worker, and there is at least one available good, that cells population will increase by in the next time step and the available worker and available good are assigned to that job
Output the final region state
Output the total, regional population for residential zones, industrial zones, and commercial zones
Output the final regional pollution state
Output the total pollution in the region
Prompt the user for the coordinates of some rectangular area of the region to analyze more closely
You must perform bounds checking to make sure the coordinates are within the bounds of the region, and reprompt the user if their coordinates are outside the bounds
Output the total population for residential zones, industrial zones, and commercial zones within the area specified by the user
Output the total pollution within the area specified by the user
See the example output files for formatting of each of the outputs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
