Write program to implement the simulation of life

Assignment Help Management Theories
Reference no: EM132263961

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: EM132263961

Questions Cloud

Why oracle 12c has introduced two new roles - audit_admin : Why Oracle 12c has introduced two new roles - AUDIT_ADMIN and AUDIT_VIEWER.
What are research interests in area of information : What are your 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
Is this contradictory or doable in business environment : Explain how each of these traits influences how followers perceive the charismatic leader. Servant leadership emphasizes being able to serve and lead.
Discuss the influence of any federal government programs : Discuss the influence of any Federal government or state government programs, such as tax credits or tax deductions for energy-saving/efficiency purchases.
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:
Discuss why publishers use the pricing plan : Textbook publishers have traditionally produced both United States and international editions of most leading textbooks. The United States version typically.
Provide an overview of pfs : Provide an overview of PFS. Briefly discuss its design goals, its strengths and weaknesses
Write c++ program that reads a local election result : Please write C++ program that reads a local election result file (called "votes.txt"):
How long will the next fraction take : What is the probability of a 222Rn atom decaying in our lungs - how long will the next fraction take if it is scheduled for the week after

Reviews

Write a Review

Management Theories Questions & Answers

  Learning in action

Learning contract proposal that will form the basis of your learning contract report.

  Change is the only constant

"Change is the only constant " Evaluate the different types of change that have occurred in Sony.

  How do advertisers try to use group influence

How do advertisers try to use group influence?  Will you find any specific examples and explain the relevant theory of group behavior and influence?

  Case study:saving sony

You have been appointed by Sony as a consultant on change management. Advise Sony on how they could implement the change by using the various theories of change you have learnt.

  How the stock market works

The purpose of this project is to help you to gain an understanding of how the stock market works and of the relationship between theory and practice.

  Find the optimal production quantities

Find not only the optimal production quantities, but also the optimal total cost.

  Describe the management process

Describe the management process and identify the skills required to manage business organizations.

  Case study : bert''s bonsai and aquatic sport museum

Case Study : Bert's Bonsai and Aquatic Sport Museum Prepare a knowledge management system.

  Knowledge management techniques

Demonstrate understanding of the many-sided nature of knowledge management

  Theory of transtheoretical model

Demonstrate understanding of the many-sided nature of knowledge management

  Write a paper on historical trends of management

Write a paper on Historical Trends of Management.

  Theory of reasoned action

Theory of Planned Behavior and Integrated Behaviors Model

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