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

  Real world case on it/business alignment

Refer to the Real World Case on IT/Business Alignment in the chapter. Companies where IT is an important part of their product offerings presumably also have a sales force that is well versed in technology.

  Should illegally seized evidence be excluded from trial

Should illegally seized evidence be excluded from trial, even though it is conclusive proof of a person's criminal acts?

  What actions can be taken to reduce the given risks

You began operating a small general electric contracting company two years ago. Originally, it was just you and your cousin, but it has grown to five licensed.

  What actions if any should you take

One of your analysts told you that the Mexican peso is expected to depreciate by 30 percent against the dollar on the foreign exchange markets over the next year. What actions, if any, should you take?

  What are the key implications for management practice

What is employee behavior? What are the key theories and findings of employee behavior research?

  A paragraph summary of the article

1.      A paragraph  summary of the article

  Describes integrated marketing communication

Which of the following best describes integrated marketing communication (IMC)? Characteristics a buyer can evaluate before purchase are called

  A multinational company that manufactures leather products

A multinational company that manufactures leather products employs third-country nationals (TCNs) as managers. How is the employment of TCNs advantageous to the company?

  What are the odds for a fight occurring

AccuScore calculated an 84% chance that there would be a fight during the game between the Anaheim Ducks and the Chicago Blacks, two of the National Hockey.

  Discuss the case of security bank of oregon v levens

Security Bank loaned money to Mr. and Mrs. Russell to buy a 50-foot cabin cruiser. The Russells signed a note and a security agreement.

  The day at the taco town fast-food restaurant

The busiest time of the day at the Taco Town fast-food restaurant is between 11:00 A.M. and 2:00 P.M. Taco Town"s service is very labor-dependent, and a critical factor for providing quick service is the number of employees on hand during this thr..

  Describe the primary value chain activities

Suppose you decide to start a business that recruits students for summer jobs. You will match available students with available jobs.

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