Program to implement the simulation of life

Assignment Help Basic Computer Science
Reference no: EM131237589

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

Questions Cloud

What is the impact of this on the stock price : On May 31 a company's stock price is $70. One million shares are outstanding. An executive exercises 100,000 stock options with a strike price of $50. -  What is the impact of this on the stock price?
What is range of geologic periods for crinoid platycrinities : Table 24.2 shows, in color, the range in the rock record of six different fossils of the Paleozoic era. Along the top of the chart is a letter for each period of the era (C for Cambrian, P for Pennsylvanian, PR for Permian, and so on).
What is the result of the auction : In a Dutch auction of 10,000 options, bids are as given: - What is the result of the auction? - Who buys how many at what price?
What will the company report as an expense for the options : The company pays no dividends and the risk-free rate is 4%. What will the company report as an expense for the options on its income statement?
Program to implement the simulation of life : 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:
Develop an initial budget for your plan : Prepare a pie chart showing the dollars/percentages budgeted for each included marketing activity for the first year. Provide justification for your choices. Explain the evaluation and control methods you will use to measure the success of your plan.
What can be said about age of a rock that contains fossil : Suppose that one species of index fossil lived between 410 and 380 Mya and another lived between 440 and 350 Mya. What can be said about the age of a rock that contains fossils of both species?
The accounting treatment of stock options is crazy : We estimated the value of each option on the grant date to be $5. At our year-end the stock price had fallen to $4, but we were still stuck with a $50 million charge to the P&L.'' -  Discuss.
Netbeans integrated development environment : Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors:

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