subject
Engineering, 10.12.2019 19:31 sierrawalk2283

The universe of conway's game of life is an infinite, two-dimensional orthogonal grid of cells, each of which is in one of two possible states: alive or dead. every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent (upper left, top, upper right, right, lower right, bottom, bottom left, left). at each step in time, the following transitions occur: any live cell with fewer than two live neighbors dies due to under-population. any live cell with two or three live neighbors lives on to the next generation (no change).any live cell with more than three live neighbors dies due to overpopulation. any dead cell with exactly three live neighbors becomes a live cell by reproduction. the initial pattern constitutes the seed if the system (starts it off). the first generation is created by applying the above rules simultaneously to every cell in the seed; births and deaths occur simultaneously, and the discrete moment at which this happens is called a "tick". each generation is a pure function of the preceding one, and the rules continue to be applied repeatedly to create further generations. objectivethis project will involve substantial codingto gain a deep understanding of how to get and set values in 2-d arrays. to gain a deep understanding of iterating over arrays using for and nested for loops. to gain a deep understanding of creating and calling functions from main that pass a variety of parameters, including statically-allocated 2d arrays. to practice recognizing repeated code and breaking down code into functionspractice using string building/concatenationto gain skills in ad-hoc code development, testing, and debugging your own version of conway's game of life that runs in the terminal, according to the rules in the description. an example executable demo_conway has been provided for you. to run, maximize your terminal window and run ./demo_conway. press ctrl+c to make it stop.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 18:20
Find the kinematic pressure of 160kpa. for air, r-287 j/ kg k. and hair al viscosity of air at a temperature of 50°c and an absolute (10 points) (b) find the dynamic viscosity of air at 110 °c. sutherland constant for air is 111k
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
You know the right answer?
The universe of conway's game of life is an infinite, two-dimensional orthogonal grid of cells, each...
Questions
Questions on the website: 13722363