Living cell dies of overcrowding in the next generation

Assignment Help Basic Computer Science
Reference no: EM131240039

DO IN C++

Write a 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. Yourprogram 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.

Reference no: EM131240039

Questions Cloud

How ips anomaly detection differ from misuse detection : How does IPS anomaly detection differ from misuse detection? - What is computer forensics? - What is a honey pot? - What is desktop management?
Explain key developments in the global environment : What will be the key developments in the global environment of business during the next five years? On the basis of these, what will be the greatest challenges that firms from the advanced industrialized countries will face?
What might be the consequences of not involving nurses : Reflect on your own experiences with your organization selecting and implementing new technology. As an end user, do you feel you had any input in the selection or and planning of the new HIT system?
Write the contrapositive of the statement : Using truth tables, verify that the statement if I am at the combination Pizza Hut and Taco Bell, then I am at the Pizza Hut is always true.
Living cell dies of overcrowding in the next generation : 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.
Reduce the temptation to become a hacker : Most hackers start their careers breaking into computer systems as teenagers. - What can we as a community of computer professionals do to reduce the temptation to become a hacker?
Implement methods for establishing a constructive structure : develop and implement methods for establishing a constructive organizational structure and culture that fosters positive employee and employer relationships
Rewrite every cat drinks beer as an implication : Using truth tables, verify that the converse of a statement is not logically equivalent to the original statement. (Suggestion: make the columns P, Q, P ⇒ Q, and Q ⇒ P, and compare the last two columns.)
Do you think cert should continue to post security holes : Some experts argue that CERT's posting of security holes on its Web site causes more security break-ins than it prevents and should be stopped. - What are the pros and cons on both sides of this argument?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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