SlideShare a Scribd company logo
1 of 1
Download to read offline
please use only these
Part 1: Organize the code (85%) : Following what we discussed on multiple file etiquette take the
single source file provided, and divide it into appropriate header files and implementation files, one
pair of files for each class. When complete the main function will be the only function in main. cpp.
Make sure each file #includes the headers it needs. Each header file must have include guards.
Only include header files when definitions are actually needed: declare objects in situations when
the compiler only requires to "know" about the objects existence but not its definition. Now what
about the global constants? Place them in their own header file named constants . h. Note that
there are two versions of clearScreen depending on platform, do not break up the preprocessor
directives; keep both versions. The first thing you should do is make sure that the single source
compiles as is. Play around with it to get comfortable the program. The program implements
Conway's Game of Life: hteps://conwaylifecom/wiki/Conway's Game of Lifs This is a simple
simulation where cells are either alive or dead based simple rules based on under population or
overcrowding. For those who are feeling adventurous look for some Life patterns and try to
implement them. Part 2: Analysis (15%): You should notice that the class Simulation has the
function report does not do anything useful other than printing "Hello World!" to the console.
Replace "Hello World"' with a brief discussion addressing the questions below. This may require
stepping through the code to get an overview of execution, hand tracing is an option but using the
debugger with break points is much more efficient.Any code you submit must compile in VS2019,
even if incomplete; any project that does not compile will receive a zero score.include sstringe
Binclude scstditis include sehrongs include sthrede 1.1FCP MISC_VER // DO NOT BREAK
APART THE PREPROCESSOR DIRECTIVES #include windows,hs Telse I/ DO NOT BREAK
APART THE PREPROCESSOR DIRECTIVES II not Microsoft visual C++, so assume UNIX
interface include siostreac Ainclude scstring finclude scstd AendIf I/ DO NOT BREAK APART THE
PREPROCESSOR DIRECTIVES 1/ Global Constants const int COWras_noM =24; const int
CANMAS_COL =24; const int SOUARE_SI2E =2i const int PEN_SIZE =3; const int BLINK4_SIze
=9; const int SLIDER_STZE =3; const int KX STEPS =30; const char ALIVE = ' x '; const char DE
AD=; II Type Definitions class World; class Sinulation; class Life { public: Int getcol( ) const f return
acol; 3 int getRow() const t return m_row: 3 int getheight () const ? return aheight; 3 int getwldth()
const t return muldth: 3 char getfigure(int r, int c ) const t

More Related Content

Similar to please use only these Part 1 Organize the code 85 Fo.pdf

C plus plus for hackers it security
C plus plus for hackers it securityC plus plus for hackers it security
C plus plus for hackers it securityCESAR A. RUIZ C
 
C language industrial training report
C language industrial training reportC language industrial training report
C language industrial training reportRaushan Pandey
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docMayurWagh46
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notesWE-IT TUTORIALS
 
Introduction of c language
Introduction of c languageIntroduction of c language
Introduction of c languagefarishah
 
Introduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfIntroduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfAnassElHousni
 
Event Driven programming(ch1 and ch2).pdf
Event Driven programming(ch1 and ch2).pdfEvent Driven programming(ch1 and ch2).pdf
Event Driven programming(ch1 and ch2).pdfAliEndris3
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdfvino108206
 
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019corehard_by
 
MikroBasic
MikroBasicMikroBasic
MikroBasicbutest
 

Similar to please use only these Part 1 Organize the code 85 Fo.pdf (20)

Readme
ReadmeReadme
Readme
 
Ctutor ashu
Ctutor ashuCtutor ashu
Ctutor ashu
 
C in7-days
C in7-daysC in7-days
C in7-days
 
C in7-days
C in7-daysC in7-days
C in7-days
 
C plus plus for hackers it security
C plus plus for hackers it securityC plus plus for hackers it security
C plus plus for hackers it security
 
C language industrial training report
C language industrial training reportC language industrial training report
C language industrial training report
 
C Language Presentation.pptx
C Language Presentation.pptxC Language Presentation.pptx
C Language Presentation.pptx
 
Programming
ProgrammingProgramming
Programming
 
Install guide
Install guideInstall guide
Install guide
 
Install guide
Install guideInstall guide
Install guide
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
Introduction of c language
Introduction of c languageIntroduction of c language
Introduction of c language
 
Introduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfIntroduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdf
 
First session quiz
First session quizFirst session quiz
First session quiz
 
First session quiz
First session quizFirst session quiz
First session quiz
 
Event Driven programming(ch1 and ch2).pdf
Event Driven programming(ch1 and ch2).pdfEvent Driven programming(ch1 and ch2).pdf
Event Driven programming(ch1 and ch2).pdf
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdf
 
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
 
MikroBasic
MikroBasicMikroBasic
MikroBasic
 

More from ableelectronics

Background InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdfBackground InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdfableelectronics
 
At the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdfAt the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdfableelectronics
 
7 TF The longer the password the tougher it is to crack.pdf
7  TF The longer the password the tougher it is to crack.pdf7  TF The longer the password the tougher it is to crack.pdf
7 TF The longer the password the tougher it is to crack.pdfableelectronics
 
A researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdfA researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdfableelectronics
 
Earthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdfEarthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdfableelectronics
 
6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdf6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdfableelectronics
 
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdfableelectronics
 
Computer Programming and MCUs Assembly Language STM32Cu.pdf
Computer Programming and MCUs  Assembly Language  STM32Cu.pdfComputer Programming and MCUs  Assembly Language  STM32Cu.pdf
Computer Programming and MCUs Assembly Language STM32Cu.pdfableelectronics
 
Chief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdfChief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdfableelectronics
 
Why did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdfWhy did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdfableelectronics
 
Using the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdfUsing the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdfableelectronics
 
void f int x The above code is a c++ function In ter.pdf
void f  int x  The above code is a c++ function In ter.pdfvoid f  int x  The above code is a c++ function In ter.pdf
void f int x The above code is a c++ function In ter.pdfableelectronics
 
This project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdfThis project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdfableelectronics
 
The as of Ct+11 allows what benefit It can be shared by .pdf
The as of Ct+11  allows what benefit It can be shared by .pdfThe as of Ct+11  allows what benefit It can be shared by .pdf
The as of Ct+11 allows what benefit It can be shared by .pdfableelectronics
 
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdfTartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdfableelectronics
 
Supportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdfSupportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdfableelectronics
 
System Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdfSystem Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdfableelectronics
 
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdfSarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdfableelectronics
 
Real GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdfReal GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdfableelectronics
 
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdfRex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdfableelectronics
 

More from ableelectronics (20)

Background InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdfBackground InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdf
 
At the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdfAt the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdf
 
7 TF The longer the password the tougher it is to crack.pdf
7  TF The longer the password the tougher it is to crack.pdf7  TF The longer the password the tougher it is to crack.pdf
7 TF The longer the password the tougher it is to crack.pdf
 
A researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdfA researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdf
 
Earthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdfEarthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdf
 
6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdf6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdf
 
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
 
Computer Programming and MCUs Assembly Language STM32Cu.pdf
Computer Programming and MCUs  Assembly Language  STM32Cu.pdfComputer Programming and MCUs  Assembly Language  STM32Cu.pdf
Computer Programming and MCUs Assembly Language STM32Cu.pdf
 
Chief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdfChief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdf
 
Why did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdfWhy did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdf
 
Using the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdfUsing the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdf
 
void f int x The above code is a c++ function In ter.pdf
void f  int x  The above code is a c++ function In ter.pdfvoid f  int x  The above code is a c++ function In ter.pdf
void f int x The above code is a c++ function In ter.pdf
 
This project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdfThis project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdf
 
The as of Ct+11 allows what benefit It can be shared by .pdf
The as of Ct+11  allows what benefit It can be shared by .pdfThe as of Ct+11  allows what benefit It can be shared by .pdf
The as of Ct+11 allows what benefit It can be shared by .pdf
 
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdfTartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdf
 
Supportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdfSupportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdf
 
System Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdfSystem Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdf
 
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdfSarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
 
Real GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdfReal GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdf
 
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdfRex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
 

Recently uploaded

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 

Recently uploaded (20)

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

please use only these Part 1 Organize the code 85 Fo.pdf

  • 1. please use only these Part 1: Organize the code (85%) : Following what we discussed on multiple file etiquette take the single source file provided, and divide it into appropriate header files and implementation files, one pair of files for each class. When complete the main function will be the only function in main. cpp. Make sure each file #includes the headers it needs. Each header file must have include guards. Only include header files when definitions are actually needed: declare objects in situations when the compiler only requires to "know" about the objects existence but not its definition. Now what about the global constants? Place them in their own header file named constants . h. Note that there are two versions of clearScreen depending on platform, do not break up the preprocessor directives; keep both versions. The first thing you should do is make sure that the single source compiles as is. Play around with it to get comfortable the program. The program implements Conway's Game of Life: hteps://conwaylifecom/wiki/Conway's Game of Lifs This is a simple simulation where cells are either alive or dead based simple rules based on under population or overcrowding. For those who are feeling adventurous look for some Life patterns and try to implement them. Part 2: Analysis (15%): You should notice that the class Simulation has the function report does not do anything useful other than printing "Hello World!" to the console. Replace "Hello World"' with a brief discussion addressing the questions below. This may require stepping through the code to get an overview of execution, hand tracing is an option but using the debugger with break points is much more efficient.Any code you submit must compile in VS2019, even if incomplete; any project that does not compile will receive a zero score.include sstringe Binclude scstditis include sehrongs include sthrede 1.1FCP MISC_VER // DO NOT BREAK APART THE PREPROCESSOR DIRECTIVES #include windows,hs Telse I/ DO NOT BREAK APART THE PREPROCESSOR DIRECTIVES II not Microsoft visual C++, so assume UNIX interface include siostreac Ainclude scstring finclude scstd AendIf I/ DO NOT BREAK APART THE PREPROCESSOR DIRECTIVES 1/ Global Constants const int COWras_noM =24; const int CANMAS_COL =24; const int SOUARE_SI2E =2i const int PEN_SIZE =3; const int BLINK4_SIze =9; const int SLIDER_STZE =3; const int KX STEPS =30; const char ALIVE = ' x '; const char DE AD=; II Type Definitions class World; class Sinulation; class Life { public: Int getcol( ) const f return acol; 3 int getRow() const t return m_row: 3 int getheight () const ? return aheight; 3 int getwldth() const t return muldth: 3 char getfigure(int r, int c ) const t