Write program to implement the simulation of life

Assignment Help Business Management
Reference no: EM132263497

Write program to implement the simulation of life as described in Scientific American by Martin Gardner. The program will be implemented on a two dimensional surface of size 60 by 60 visible elements. The rules of the simulation are as follows:

1) An initial set of cells are marked as "alive" by the user. This is generation 0. Your program will ask the user to input a set of row and column values to let the user determine which cells are "alive". Display this generation.

2) Cells change for each succeeding generation by the following rules:

a. A living cell dies of overcrowding in the next generation if it currently has 4 or more living neighbors.

b. A living cell dies of loneliness in the next generation if it currently has only 0 or 1 living neighbors.

c. An empty cell becomes a "birth" cell (becomes alive) in the next generation if it has exactly 3 living neighbors.

d. All other cells remain unchanged.

3) The new generation becomes the current generation and is displayed.

4) After displaying each new generation, ask the user if they wish to continue to the next generation or stop at this point.

Please write the code for C programming not C++ or java

Reference no: EM132263497

Questions Cloud

What is computer security : What is computer security and why do you need to have knowledge of basic security methods in order to work with information systems?
Research interests in the area of information technology : Why are you inspired to research in this area, and why do you think it is important to research in this area?
Describe the general setting by talking a bit about location : Briefly describe the general setting by talking a bit about the location, the number of people there, the general overall "vibe" of the place.
What were the main provisions of the regulation : Why was the regulation brought into existence? What were the main provisions of the regulation?
Write program to implement the simulation of life : The program will be implemented on a two dimensional surface of size 60 by 60 visible elements. The rules of the simulation are as follows:
Prove the auto-correlation function : Prove the auto-correlation function Rx (?) is an even function - Random process with the Gaussian distribution of probability function
Discuss the combination of remote sensing : A category five hurricane hit the town of Jacksonville, Florida devastated the town crippling infrastructure including power to homes and businesses.
Western business culture and eastern business culture : Difference between Western business culture and eastern business culture?
Provide an overview of pfs : Provide an overview of PFS. Briefly discuss its design goals, its strengths and weaknesses

Reviews

Write a Review

Business Management Questions & Answers

  Reconciling import subsitute industrialization

What side of the industrialisation debate do you take as you read Reconciling Import Subsitute Industrialization versus Export-oriented Industrialization Debate

  Companies to work for by using a search engine

Locate a list of the 100 best companies to work for by using a search engine. (WE DID THIS AS A TEAM)

  Problem of representing two offensive linemen

The NFL season has just concluded and you have the problem of representing two offensive linemen from the Super Bowl Champion Arizona Cardinals.

  Impact and beliefs of leadership

What is the impact of leadership? Discuss your beliefs on leadership. What experiences have shaped your beliefs? How did your experiences form your opinion on leadership?

  What are some various theories on free trade

What are some various theories on free trade? Please give some examples as to what countries have used them and any success they've had.

  Number of monthly separations between workers

The number of monthly separations between workers and firms is about 200,000, equal to a decent month's job gains.

  Leaders with an internal locus of control

Explain each mindset. What might leaders with an external locus of control do differently than leaders with an internal locus of control?

  What are the critical issues today regarding the health work

What are the critical issues today regarding the health workforce--training, hiring, paying, and building? And, how are these handled by HCOs and insurers?

  Determining the relational operations

Discuss the issue of determining how to compare a data type that consists of other varying data types.

  New strategy and a new internal organization

In 2011, Nokia announced a strategic partnership with Microsoft, a new strategy and a new internal organization. Microsoft (2011) reported on the changes:

  Summarize the types of organizational structures

Summarize the types of organizational structures and their characteristics managers might consider when assessing how to structure an organization.

  What is full employment or natural rate of unemployment

1. What are the causes of frictional, cyclical, and structural unemployment? 2. What is full employment or natural rate of unemployment?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd