SlideShare a Scribd company logo
1 of 2
Download to read offline
Program Requirements: Create a (cmd line / terminal) based program: No partners on this
assignment. Do not share code or look at others code (you may look at your previous code or
class resource materials only) Do not use OS specific commands like pause, clear, clr, etc. for
the terminal GUI (This way it will compile and work for all c++ compilers) Use provided
Header file I_Life.h Rules The universe of the Game of Life is an infinite two-dimensional
orthogonal grid of square cells, each of which is in one of two possible states, alive or dead.
Every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically,
or diagonally adjacent. At each step in time, the following transitions occur: 1. Any live cell
with fewer than two live neighbors dies, as if caused by under-population. 2. Any live cell with
two or three live neighbors lives on to the next generation. 3. Any live cell with more than three
live neighbors dies, as if by over-population. 4. Any dead cell with exactly three live neighbors
becomes a live cell, as if by reproduction. The initial pattern constitutes the seed of the system.
The first generation is created by applying the above rules simultaneously to every cell in the
seed—births and deaths occur simultaneously, and the discrete moment at which this happens is
sometimes called a tick (in other words, each generation is a pure function of the preceding one).
The rules continue to be applied repeatedly to create further generations. (Wikipidia Oct. 5th
2015) Use a class implementation Use provided Pure verbal functions Only submit 3 files:
main.cpp life.h <-headers and function prototypes life.cpp <-functions definitions
Comment each Function // Parameters? // What it Does? // What it Returns? life class:
+printIntro(void):void +printSeedRequest(void):void +printBoard(void):void
+pauseGame(void):void +initilizeBoard(void):void +evalBoard(void):void
+isGameOver(void):bool -validateSeed(void):bool -boardPrev[10][10]:unsigned int
-boardCopy[10][10]:unsigned int -evalNeighbours(int x, int y):int -inbounds(int x,
int y):bool -m_seed: unsigned int BOARD SIZE 10 Game display: Welcome to
Conway’s Game of Life by Jason Monast Please enter the random seed: 7
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * Press enter to continue:
Solution
#include
#include
#include
#include
#include
int rows = 30;
coloums= 40;
static final int dead = 0
int alive =1;
int[] [] stateint main {

More Related Content

Similar to Program Requirements Create a (cmd line terminal) based program.pdf

2. overview of c#
2. overview of c#2. overview of c#
2. overview of c#Rohit Rao
 
Kotlin for Android devs
Kotlin for Android devsKotlin for Android devs
Kotlin for Android devsAdit Lal
 
Cross Platform App Development with C++
Cross Platform App Development with C++Cross Platform App Development with C++
Cross Platform App Development with C++Joan Puig Sanz
 
## Part B- Conway's Game of Life ### Introduction John Conway's Ga.pdf
## Part B- Conway's Game of Life   ### Introduction   John Conway's Ga.pdf## Part B- Conway's Game of Life   ### Introduction   John Conway's Ga.pdf
## Part B- Conway's Game of Life ### Introduction John Conway's Ga.pdfBANSALANKIT1077
 
Building android apps with kotlin
Building android apps with kotlinBuilding android apps with kotlin
Building android apps with kotlinShem Magnezi
 
DieHard: Probabilistic Memory Safety for Unsafe Languages
DieHard: Probabilistic Memory Safety for Unsafe LanguagesDieHard: Probabilistic Memory Safety for Unsafe Languages
DieHard: Probabilistic Memory Safety for Unsafe LanguagesEmery Berger
 
Introduction to clojure
Introduction to clojureIntroduction to clojure
Introduction to clojureAbbas Raza
 
01-Python-Basics.ppt
01-Python-Basics.ppt01-Python-Basics.ppt
01-Python-Basics.pptVicVic56
 
Complete c programming presentation
Complete c programming presentationComplete c programming presentation
Complete c programming presentationnadim akber
 
Peyton jones-2009-fun with-type_functions-slide
Peyton jones-2009-fun with-type_functions-slidePeyton jones-2009-fun with-type_functions-slide
Peyton jones-2009-fun with-type_functions-slideTakayuki Muranushi
 
03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...Intro C# Book
 
introduction to python in english presentation file
introduction to python in english presentation fileintroduction to python in english presentation file
introduction to python in english presentation fileRujanTimsina1
 
Oracle IoT Kids Workshop
Oracle IoT Kids WorkshopOracle IoT Kids Workshop
Oracle IoT Kids WorkshopStephen Chin
 

Similar to Program Requirements Create a (cmd line terminal) based program.pdf (20)

2. overview of c#
2. overview of c#2. overview of c#
2. overview of c#
 
PYTHON
PYTHONPYTHON
PYTHON
 
Kotlin for Android devs
Kotlin for Android devsKotlin for Android devs
Kotlin for Android devs
 
Cross Platform App Development with C++
Cross Platform App Development with C++Cross Platform App Development with C++
Cross Platform App Development with C++
 
Computer Science Assignment Help
Computer Science Assignment HelpComputer Science Assignment Help
Computer Science Assignment Help
 
## Part B- Conway's Game of Life ### Introduction John Conway's Ga.pdf
## Part B- Conway's Game of Life   ### Introduction   John Conway's Ga.pdf## Part B- Conway's Game of Life   ### Introduction   John Conway's Ga.pdf
## Part B- Conway's Game of Life ### Introduction John Conway's Ga.pdf
 
Building android apps with kotlin
Building android apps with kotlinBuilding android apps with kotlin
Building android apps with kotlin
 
DieHard: Probabilistic Memory Safety for Unsafe Languages
DieHard: Probabilistic Memory Safety for Unsafe LanguagesDieHard: Probabilistic Memory Safety for Unsafe Languages
DieHard: Probabilistic Memory Safety for Unsafe Languages
 
Introduction to clojure
Introduction to clojureIntroduction to clojure
Introduction to clojure
 
HPC Examples
HPC ExamplesHPC Examples
HPC Examples
 
01-Python-Basics.ppt
01-Python-Basics.ppt01-Python-Basics.ppt
01-Python-Basics.ppt
 
Complete c programming presentation
Complete c programming presentationComplete c programming presentation
Complete c programming presentation
 
Vb.net ii
Vb.net iiVb.net ii
Vb.net ii
 
Peyton jones-2009-fun with-type_functions-slide
Peyton jones-2009-fun with-type_functions-slidePeyton jones-2009-fun with-type_functions-slide
Peyton jones-2009-fun with-type_functions-slide
 
For
ForFor
For
 
03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...
 
introduction to python in english presentation file
introduction to python in english presentation fileintroduction to python in english presentation file
introduction to python in english presentation file
 
python-2021.pdf
python-2021.pdfpython-2021.pdf
python-2021.pdf
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
 
Oracle IoT Kids Workshop
Oracle IoT Kids WorkshopOracle IoT Kids Workshop
Oracle IoT Kids Workshop
 

More from kavithaarp

Sharmeka recently stopped taking her medication but did not follow h.pdf
Sharmeka recently stopped taking her medication but did not follow h.pdfSharmeka recently stopped taking her medication but did not follow h.pdf
Sharmeka recently stopped taking her medication but did not follow h.pdfkavithaarp
 
public interface Game Note interface in place of class { .pdf
public interface Game  Note interface in place of class { .pdfpublic interface Game  Note interface in place of class { .pdf
public interface Game Note interface in place of class { .pdfkavithaarp
 
Rana Issa is a college student from Egypt, who is majoring in Agricu.pdf
Rana Issa is a college student from Egypt, who is majoring in Agricu.pdfRana Issa is a college student from Egypt, who is majoring in Agricu.pdf
Rana Issa is a college student from Egypt, who is majoring in Agricu.pdfkavithaarp
 
Public health surveillance includes all of the following EXCEPT Dis.pdf
Public health surveillance includes all of the following EXCEPT  Dis.pdfPublic health surveillance includes all of the following EXCEPT  Dis.pdf
Public health surveillance includes all of the following EXCEPT Dis.pdfkavithaarp
 
Prepare a two to three page report titled Environmental Sustainabi.pdf
Prepare a two to three page report titled Environmental Sustainabi.pdfPrepare a two to three page report titled Environmental Sustainabi.pdf
Prepare a two to three page report titled Environmental Sustainabi.pdfkavithaarp
 
PJ conducts an experimental study on the effects of soft music durin.pdf
PJ conducts an experimental study on the effects of soft music durin.pdfPJ conducts an experimental study on the effects of soft music durin.pdf
PJ conducts an experimental study on the effects of soft music durin.pdfkavithaarp
 
Neurons and neuroglia are components of_ connective tissue nervous ti.pdf
Neurons and neuroglia are components of_ connective tissue nervous ti.pdfNeurons and neuroglia are components of_ connective tissue nervous ti.pdf
Neurons and neuroglia are components of_ connective tissue nervous ti.pdfkavithaarp
 
In which component of an HVAC system does a chilled beam save energy.pdf
In which component of an HVAC system does a chilled beam save energy.pdfIn which component of an HVAC system does a chilled beam save energy.pdf
In which component of an HVAC system does a chilled beam save energy.pdfkavithaarp
 
In every generation of a dynasty, the number of children born is X i.pdf
In every generation of a dynasty, the number of children born is X i.pdfIn every generation of a dynasty, the number of children born is X i.pdf
In every generation of a dynasty, the number of children born is X i.pdfkavithaarp
 
If you deposit money today in an account that pays 4.5 annual inter.pdf
If you deposit money today in an account that pays 4.5 annual inter.pdfIf you deposit money today in an account that pays 4.5 annual inter.pdf
If you deposit money today in an account that pays 4.5 annual inter.pdfkavithaarp
 
HINT Eventually you will need to factor. Just before factoring, try.pdf
HINT Eventually you will need to factor. Just before factoring, try.pdfHINT Eventually you will need to factor. Just before factoring, try.pdf
HINT Eventually you will need to factor. Just before factoring, try.pdfkavithaarp
 
how can second messengers amplify a signal initiated by a toxicant o.pdf
how can second messengers amplify a signal initiated by a toxicant o.pdfhow can second messengers amplify a signal initiated by a toxicant o.pdf
how can second messengers amplify a signal initiated by a toxicant o.pdfkavithaarp
 
Examine the following table of characters in four different species o.pdf
Examine the following table of characters in four different species o.pdfExamine the following table of characters in four different species o.pdf
Examine the following table of characters in four different species o.pdfkavithaarp
 
Elucidate the various functions and elements of business models. .pdf
Elucidate the various functions and elements of business models. .pdfElucidate the various functions and elements of business models. .pdf
Elucidate the various functions and elements of business models. .pdfkavithaarp
 
describe the mutualistic relationship between trichonymphs, termite,.pdf
describe the mutualistic relationship between trichonymphs, termite,.pdfdescribe the mutualistic relationship between trichonymphs, termite,.pdf
describe the mutualistic relationship between trichonymphs, termite,.pdfkavithaarp
 
Could you help me answer this question...If an older adult in your c.pdf
Could you help me answer this question...If an older adult in your c.pdfCould you help me answer this question...If an older adult in your c.pdf
Could you help me answer this question...If an older adult in your c.pdfkavithaarp
 
comporative financial statements of Korbin Co mpany follow KORBIN COM.pdf
comporative financial statements of Korbin Co mpany follow KORBIN COM.pdfcomporative financial statements of Korbin Co mpany follow KORBIN COM.pdf
comporative financial statements of Korbin Co mpany follow KORBIN COM.pdfkavithaarp
 
Compare and contrast how the nervous and endocrine systems control b.pdf
Compare and contrast how the nervous and endocrine systems control b.pdfCompare and contrast how the nervous and endocrine systems control b.pdf
Compare and contrast how the nervous and endocrine systems control b.pdfkavithaarp
 
Answer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdf
Answer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdfAnswer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdf
Answer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdfkavithaarp
 
Can you complete this paragraph about biodiversity in Madagascar Pa.pdf
Can you complete this paragraph about biodiversity in Madagascar  Pa.pdfCan you complete this paragraph about biodiversity in Madagascar  Pa.pdf
Can you complete this paragraph about biodiversity in Madagascar Pa.pdfkavithaarp
 

More from kavithaarp (20)

Sharmeka recently stopped taking her medication but did not follow h.pdf
Sharmeka recently stopped taking her medication but did not follow h.pdfSharmeka recently stopped taking her medication but did not follow h.pdf
Sharmeka recently stopped taking her medication but did not follow h.pdf
 
public interface Game Note interface in place of class { .pdf
public interface Game  Note interface in place of class { .pdfpublic interface Game  Note interface in place of class { .pdf
public interface Game Note interface in place of class { .pdf
 
Rana Issa is a college student from Egypt, who is majoring in Agricu.pdf
Rana Issa is a college student from Egypt, who is majoring in Agricu.pdfRana Issa is a college student from Egypt, who is majoring in Agricu.pdf
Rana Issa is a college student from Egypt, who is majoring in Agricu.pdf
 
Public health surveillance includes all of the following EXCEPT Dis.pdf
Public health surveillance includes all of the following EXCEPT  Dis.pdfPublic health surveillance includes all of the following EXCEPT  Dis.pdf
Public health surveillance includes all of the following EXCEPT Dis.pdf
 
Prepare a two to three page report titled Environmental Sustainabi.pdf
Prepare a two to three page report titled Environmental Sustainabi.pdfPrepare a two to three page report titled Environmental Sustainabi.pdf
Prepare a two to three page report titled Environmental Sustainabi.pdf
 
PJ conducts an experimental study on the effects of soft music durin.pdf
PJ conducts an experimental study on the effects of soft music durin.pdfPJ conducts an experimental study on the effects of soft music durin.pdf
PJ conducts an experimental study on the effects of soft music durin.pdf
 
Neurons and neuroglia are components of_ connective tissue nervous ti.pdf
Neurons and neuroglia are components of_ connective tissue nervous ti.pdfNeurons and neuroglia are components of_ connective tissue nervous ti.pdf
Neurons and neuroglia are components of_ connective tissue nervous ti.pdf
 
In which component of an HVAC system does a chilled beam save energy.pdf
In which component of an HVAC system does a chilled beam save energy.pdfIn which component of an HVAC system does a chilled beam save energy.pdf
In which component of an HVAC system does a chilled beam save energy.pdf
 
In every generation of a dynasty, the number of children born is X i.pdf
In every generation of a dynasty, the number of children born is X i.pdfIn every generation of a dynasty, the number of children born is X i.pdf
In every generation of a dynasty, the number of children born is X i.pdf
 
If you deposit money today in an account that pays 4.5 annual inter.pdf
If you deposit money today in an account that pays 4.5 annual inter.pdfIf you deposit money today in an account that pays 4.5 annual inter.pdf
If you deposit money today in an account that pays 4.5 annual inter.pdf
 
HINT Eventually you will need to factor. Just before factoring, try.pdf
HINT Eventually you will need to factor. Just before factoring, try.pdfHINT Eventually you will need to factor. Just before factoring, try.pdf
HINT Eventually you will need to factor. Just before factoring, try.pdf
 
how can second messengers amplify a signal initiated by a toxicant o.pdf
how can second messengers amplify a signal initiated by a toxicant o.pdfhow can second messengers amplify a signal initiated by a toxicant o.pdf
how can second messengers amplify a signal initiated by a toxicant o.pdf
 
Examine the following table of characters in four different species o.pdf
Examine the following table of characters in four different species o.pdfExamine the following table of characters in four different species o.pdf
Examine the following table of characters in four different species o.pdf
 
Elucidate the various functions and elements of business models. .pdf
Elucidate the various functions and elements of business models. .pdfElucidate the various functions and elements of business models. .pdf
Elucidate the various functions and elements of business models. .pdf
 
describe the mutualistic relationship between trichonymphs, termite,.pdf
describe the mutualistic relationship between trichonymphs, termite,.pdfdescribe the mutualistic relationship between trichonymphs, termite,.pdf
describe the mutualistic relationship between trichonymphs, termite,.pdf
 
Could you help me answer this question...If an older adult in your c.pdf
Could you help me answer this question...If an older adult in your c.pdfCould you help me answer this question...If an older adult in your c.pdf
Could you help me answer this question...If an older adult in your c.pdf
 
comporative financial statements of Korbin Co mpany follow KORBIN COM.pdf
comporative financial statements of Korbin Co mpany follow KORBIN COM.pdfcomporative financial statements of Korbin Co mpany follow KORBIN COM.pdf
comporative financial statements of Korbin Co mpany follow KORBIN COM.pdf
 
Compare and contrast how the nervous and endocrine systems control b.pdf
Compare and contrast how the nervous and endocrine systems control b.pdfCompare and contrast how the nervous and endocrine systems control b.pdf
Compare and contrast how the nervous and endocrine systems control b.pdf
 
Answer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdf
Answer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdfAnswer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdf
Answer 1 and 2 in detail Recently, Kathy Smith, a project manager fo.pdf
 
Can you complete this paragraph about biodiversity in Madagascar Pa.pdf
Can you complete this paragraph about biodiversity in Madagascar  Pa.pdfCan you complete this paragraph about biodiversity in Madagascar  Pa.pdf
Can you complete this paragraph about biodiversity in Madagascar Pa.pdf
 

Recently uploaded

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 

Recently uploaded (20)

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 

Program Requirements Create a (cmd line terminal) based program.pdf

  • 1. Program Requirements: Create a (cmd line / terminal) based program: No partners on this assignment. Do not share code or look at others code (you may look at your previous code or class resource materials only) Do not use OS specific commands like pause, clear, clr, etc. for the terminal GUI (This way it will compile and work for all c++ compilers) Use provided Header file I_Life.h Rules The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur: 1. Any live cell with fewer than two live neighbors dies, as if caused by under-population. 2. Any live cell with two or three live neighbors lives on to the next generation. 3. Any live cell with more than three live neighbors dies, as if by over-population. 4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction. The initial pattern constitutes the seed of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed—births and deaths occur simultaneously, and the discrete moment at which this happens is sometimes called a tick (in other words, each generation is a pure function of the preceding one). The rules continue to be applied repeatedly to create further generations. (Wikipidia Oct. 5th 2015) Use a class implementation Use provided Pure verbal functions Only submit 3 files: main.cpp life.h <-headers and function prototypes life.cpp <-functions definitions Comment each Function // Parameters? // What it Does? // What it Returns? life class: +printIntro(void):void +printSeedRequest(void):void +printBoard(void):void +pauseGame(void):void +initilizeBoard(void):void +evalBoard(void):void +isGameOver(void):bool -validateSeed(void):bool -boardPrev[10][10]:unsigned int -boardCopy[10][10]:unsigned int -evalNeighbours(int x, int y):int -inbounds(int x, int y):bool -m_seed: unsigned int BOARD SIZE 10 Game display: Welcome to Conway’s Game of Life by Jason Monast Please enter the random seed: 7 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Press enter to continue: Solution #include #include #include #include
  • 2. #include int rows = 30; coloums= 40; static final int dead = 0 int alive =1; int[] [] stateint main {