The game of Life, invented by the mathematician John H. Conway, is intended to model life in a

Academic Paper Homework Help
Tutorial

The game of Life, invented by the mathematician John H. Conway, is intended to model life in a
The game of Life, invented by the mathematician John H. Conway, is intended to model life in a society of organisms. Consider a rectangular array of cells, each of which may contain an organism. If the array is viewed as extending indefinitely in both directions, then each cell has eight neighbors, the eight cells surrounding it. In each generation, births and deaths occur according to the following rules.

– An organism is born in any empty cell having exactly three neighbors.

– An organism dies form isolation if it has fewer than two neighbors.

– An organism dies from overcrowding if it has more than three neighbors.

– All other organisms survive.

Use a 20 x 20 array to test your program. Print out each generation (i.e. 20 x 20 array) for the first 6 generations. Be sure to printout generation 0.

The data for the above is as follows where each subscript (row,col) represents a life form:

Start life in col 3, 4, 5 and col 20 ie. (1,1) (2,1) (3,1) … (20,1) and (1,20) (2,20) (3,20) … (20,20), row 10, 11 and row 19, and the following other matrix locaitons:

3,6 15,18 4,14 17,10

3,7 15,19 5,15 17,11

3,8 16,19 9,4 18,10

4,6 16,18 13,13 18,11

4,7 16,16 15,14 16,10

5,6 17,15 13,15 17,11

5,8 17,18 13,16 15,6

19,6 19,4 19,6 19,7

6,6 17,19 12,14 15,7

7,6 18,18 13,18 16,6

8,7 18,17 12,15 17,6

8,8 17,9 2,6 18,6

20,20 9,8 2,7 12,6

5,7 12,7 2,2 18,2

2,8 2,9 2,10 19,16

4,10 4,11 2,12 19,18

4,13 3,11 2,13

3,13 3,14 13,17

A life form is represented by an asterisk symbol.

You probably already know this but the instructor said that this program is much easier to write if you add extra rows and columns to the outer perimeter of the array.

The results have to be sent to a txt file and then printed from the file. gameOfLife.txt
Answer

Computer Science homework help
This is property of termpaperchampions.com. Login/Signup to buy an essay from us.

How to place an order?

Take a few steps to place an order on our site:

  • Fill out the form and state the deadline.
  • Calculate the price of your order and pay for it with your credit card.
  • When the order is placed, we select a suitable writer to complete it based on your requirements.
  • Stay in contact with the writer and discuss vital details of research.
  • Download a preview of the research paper. Satisfied with the outcome? Press “Approve.”

Feel secure when using our service

It's important for every customer to feel safe. Thus, at TermPaperChampions, we take care of your security.

Financial security You can safely pay for your order using secure payment systems.
Personal security Any personal information about our customers is private. No other person can get access to it.
Academic security To deliver no-plagiarism samples, we use a specially-designed software to check every finished paper.
Web security This website is protected from illegal breaks. We constantly update our privacy management.

Get assistance with placing your order. Clarify any questions about our services. Contact our support team. They are available 24\7.

Still thinking about where to hire experienced authors and how to boost your grades? Place your order on our website and get help with any paper you need. We’ll meet your expectations.

Order now Get a quote

INTRODUCING MyWallet: We Have Made It A Whole Lot Easier To Place Orders With Us