Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this program in C++ please. Thank you! This is the entire question, as in this is all the information we get. Even if

I need this program in C++ please. Thank you! This is the entire question, as in this is all the information we get. Even if the code is not 100% correct, some sort of code would be appreciated. Thank you!

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Aliens have invaded Earth and are threatening to destroy the planet if they don't see any signs of life... but they are looking for a different kind of life than we are normally used to. They are looking for the signs of life that John Conway is used to! They are sending out signals and searching for a lifelike response: it is up to you to make sure they get one! You are tasked with writing a 1D cellular automaton simulator that can respond to the alien's signals. Let's figure out how they work! Cellular automatons are defined in terms of a rule. This rule can be applied to some input state at generation k and will output a state at generation k+1. Each state of an automata is some series of 0s and 1s (or empty squares and filled squares if you like). A rule is some 8 bit number (0 rule 3 #include 4 #include 5 #include 6 using namespace std; 9int main) 10 /* Enter your code here. Read input from STDIN. Print output to STDOUT / return ; 12 13 Line: 1 Col: 1 od Test against custom input Run Code Submit Code Aliens have invaded Earth and are threatening to destroy the planet if they don't see any signs of life... but they are looking for a different kind of life than we are normally used to. They are looking for the signs of life that John Conway is used to! They are sending out signals and searching for a lifelike response: it is up to you to make sure they get one! You are tasked with writing a 1D cellular automaton simulator that can respond to the alien's signals. Let's figure out how they work! Cellular automatons are defined in terms of a rule. This rule can be applied to some input state at generation k and will output a state at generation k+1. Each state of an automata is some series of 0s and 1s (or empty squares and filled squares if you like). A rule is some 8 bit number (0 rule 3 #include 4 #include 5 #include 6 using namespace std; 9int main) 10 /* Enter your code here. Read input from STDIN. Print output to STDOUT / return ; 12 13 Line: 1 Col: 1 od Test against custom input Run Code Submit Code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions