pls help me with my programming assignment coz I'm just a beginner and I cant answer my assignments..
here is the problem:
1.The game or puzzle takes place in a two dimensional grid of cells. A cell is `alive' or `dead'. If a cell is alive and has 2 or 3 live neighbours at time t then it stays alive at time t+1, otherwise it becomes dead at time t+1. If a cell is dead and has exactly 3 live
neighbours at time t then it becomes alive at time t+1, otherwise it stays dead at time t+1. The idea is that a cell with too few neighbours gets lonely and that one with too many suffocates.
Exer Specifications:
1. The program should have the ff inputs:
1.1. A file name containing the initial state of the matrix.
1.2. An integer that tells the number of generations that the
program will simulate.
2. The program should do the following.
1.1. perform the life algorithm on the matrix.
1.2. Display to the screen the result of the life algorithm for
each generation.
1.3. A text file
ty..
Is there any C programmer that can help me with my assignments? pls pls..?
Sounds similar to the "Game of Life" algorithm/program. Maybe you can look that up on the internet for help.
Reply:What do you have so far? Did you want someone to do your homework FOR you? I can HELP you, but I won't do it FOR you. Get started, and show us what you have so far.
Reply:I dont do C so I cant help you with code.
What you need to do is when you create your alogorithm, you need to introduce boolean logic gates and xor functionality.
build your code on top of those two hints :)
Reply:why not? you have to take a look at
http://experthelps.com/
and post your details with what you want.surely you can make it from there
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment