Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

10% O .oooo H20 11:00 PM ehacc hacc.edu HACC-Harrisburg Area Community College F

ID: 3861856 • Letter: 1

Question

10% O .oooo H20 11:00 PM ehacc hacc.edu HACC-Harrisburg Area Community College Fahringer CPS 161 Computer Science Program #6 Program Due: Tuesday, 20 points March 12 Game of Life Task: Simulate the growth of a biological population. The Game of Life, invented by John H. Conway, is supposed to model the genetic laws for birth, survival, and death. Our implementation of the game will use a 2-dimensional array with 12 rows and 12 columns. Each cell of the array will hold either a 1 (an organism is present) or a o (no organism there). You will calculate 4 generations of the organisms birth survival, and death. An organism's neighbors affect its survival. Each organism has 8 adjoining cells where its neighbors may live, as shown in this grid The neighbors for cell X would be located in the 8 shaded cells surrounding it. In the situation illustrated, X has 3 neighbors. Rules for the game Birth: An organism will be born in each empty location that has exactly 3 neighbors. .Death: An organism with 4 or more organisms as neighbors will die from overcrowding. An organism with 1 or o neighbors will die of loneliness. .Survival: An organism with 2 or 3 neighbors will survive to the next generation.

Explanation / Answer

Hi,

Below is the reference of your problem:

I hope it will solve your problem.