SlideShare a Scribd company logo
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

PDF
His162013 140529214456-phpapp01
PDF
C++ for hackers
PDF
How to work with code blocks
PPT
Purdue CS354 Operating Systems 2008
PDF
Programming in c_in_7_days
PPTX
C++Basics2022.pptx
PPTX
THE BASIC TOOLS
DOCX
ID E's features
His162013 140529214456-phpapp01
C++ for hackers
How to work with code blocks
Purdue CS354 Operating Systems 2008
Programming in c_in_7_days
C++Basics2022.pptx
THE BASIC TOOLS
ID E's features

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

RTF
Readme
PDF
Ctutor ashu
PDF
C in7-days
PDF
C in7-days
PDF
C plus plus for hackers it security
DOCX
C language industrial training report
PPTX
C Language Presentation.pptx
PPTX
Programming
PDF
Install guide
PDF
Install guide
DOC
Introduction-to-C-Part-1 (1).doc
PDF
tybsc it asp.net full unit 1,2,3,4,5,6 notes
PDF
Introduction of c language
PDF
Introduction-to-C-Part-1.pdf
PDF
First session quiz
PDF
First session quiz
PDF
Event Driven programming(ch1 and ch2).pdf
PDF
CS8251_QB_answers.pdf
PDF
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
PDF
Solution Manual for Visual C# How to Program (6th Edition) (Deitel Series) 6t...
Readme
Ctutor ashu
C in7-days
C in7-days
C plus plus for hackers it security
C language industrial training report
C Language Presentation.pptx
Programming
Install guide
Install guide
Introduction-to-C-Part-1 (1).doc
tybsc it asp.net full unit 1,2,3,4,5,6 notes
Introduction of c language
Introduction-to-C-Part-1.pdf
First session quiz
First session quiz
Event Driven programming(ch1 and ch2).pdf
CS8251_QB_answers.pdf
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
Solution Manual for Visual C# How to Program (6th Edition) (Deitel Series) 6t...

More from ableelectronics (20)

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

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Cell Types and Its function , kingdom of life
PPTX
GDM (1) (1).pptx small presentation for students
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
master seminar digital applications in india
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Lesson notes of climatology university.
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Complications of Minimal Access Surgery at WLH
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Final Presentation General Medicine 03-08-2024.pptx
Cell Types and Its function , kingdom of life
GDM (1) (1).pptx small presentation for students
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Final Presentation General Medicine 03-08-2024.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
A systematic review of self-coping strategies used by university students to ...
01-Introduction-to-Information-Management.pdf
Pharma ospi slides which help in ospi learning
master seminar digital applications in india
Module 4: Burden of Disease Tutorial Slides S2 2025
Lesson notes of climatology university.
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
102 student loan defaulters named and shamed – Is someone you know on the list?
Chinmaya Tiranga quiz Grand Finale.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Classroom Observation Tools for Teachers
Complications of Minimal Access Surgery at WLH

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