SlideShare a Scribd company logo
1/5
KIT107 Programming 2019
Assignment 3
Due Date
The assignment is due at 3PM Wednesday May 29th
2019 and should be completed in
pairs using the Pair Programming technique.
Context
Famous people don’t like to share the lime-light with other famous people. Sick people
need to be kept away from other sick/well people. Table plans for wedding receptions
need to have family members that don’t get along kept away from each other. N-Queens
is a problem from the board game of Chess which has many such real-life applications.
In N-Queens, a board of N rows and N columns must have N Queens placed on the NxN
squares of the board such that there is only one Queen on each row, each column, and
on the diagonals of each square. An example of 8-Queens is shown below.
Task
Your task is to implement the N-Queens problem in C so that the computer will find the
solution for you.
The computer will select moves by creating a game tree. A game tree consists of all the
possible states of the game and in this assignment the computer determines any possible
solution to be the best one. Each node of the game tree has children that indicate the
states of the game that follow from the state of the parent for each possible move, i.e.
each node in the tree possesses at most NxN children of any node but as more moves are
made, or if a smaller board is used, then there will become less.
This assignment uses many data structures (trees, linked-lists, stacks, and queues) to
solve the puzzle. You should create and traverse the game tree using a stack and queue
as intermediate data structures. When a solution is found the solution should be
displayed. The program will be text only.
2/5
A Visual Studio project file is available for download from MyLO. The project contains
many header (.h) and source (.c) files. All required files are present. You should not
add any further files or change any code which is provided (other than the settings in
assig_three119.h).
You need to complete the functions within the program files which have been declared
but for which the function bodies are missing and to update the header comments of the
source files that you complete with your names, student IDs and ratio of effort.
Please note: there is not enough memory granted by the operating system to the running
program to solve the depth-first problem on an 8x8 board or larger, or the breadth-first
problem on a 6x6 board or larger. Sample runs of the game are shown below.
Please also note that there is no solution available for 2-Queens or 3-Queens.
3/5
Marking scheme
Task/Topic Maximum
mark
Program operates as specified
square_state.c correctly completed 2
game_state.c correctly completed 10
t_node.c correctly completed 5
game_tree.c correctly completed 21
stack.c correctly completed 5
queue.c correctly completed 5
Program Style
Does not unnecessarily repeat tests or have other redundant/confusing code 6
Uses correctly the C naming conventions 6
Alignment of code and use of white space makes code readable 6
Always uses blocks in branch and loop constructs 6
Meaningful identifiers 6
Variables declared at the top of functions 6
Each variable declaration is commented 6
Comments within the code indicate the purpose of sections of code (but
DO NOT just duplicate what the code says)
6
Program Style
Your program should follow the following coding conventions:
• const variable identifiers should be used as much as possible, should be
written all in upper case and should be declared before all other variables;
• Variable identifiers should start with a lower case letter, be meaningful, and
variables should only be declared at the top of a function;
• Every if and if-else statement should have a block of code (i.e. collections
of lines surrounded by { and }) for both the if part and the else part (if used);
• Every loop (do, while, for) should have a block of code;
• The keyword continue should not be used;
• The keyword break should only be used as part of a switch statement;
• Opening and closing braces of a block should be aligned;
• All code within a block should be aligned and indented 1 tab stop (or 4 spaces)
from the braces marking this block;
• Commenting:
o There should be a block of header comment which includes at least
 file name
 student names
 student identity numbers
 an indication of the ratio of effort, if this is missing 50:50 will be
assumed
 a statement of the purpose of the program
 date
o Each variable declaration should be commented
o There should be a comment identifying groups of statements that do
various parts of the task
4/5
o Comments should describe the strategy of the code and should not
simply translate the C into English
Style marks will be awarded proportionally, i.e. if you attempt only half the coding you
can expect only half the style marks.
What and how to submit
Only one submission is required for the pair but both paper and electronic submission is
required for each pair.
What to submit
Paper submission
• A signed cover page (blanks can be collected from the ICT office or from
the ICT web site). Your assignment will not be marked unless this is present;
• A print-out of the six ‘.c’ source code files for the program; and
• A statement from each person indicating what proportion of the work was theirs.
If the work was done equally, then each person should claim 50% of the effort.
It is expected that this will be the case and this will be assumed if no statement is
submitted. If, however, one person has done very little, then this should be
stated. A reason why this is the case should be given. For example, if one
student does 80% of the work because their partner did not turn up to meetings,
complete work by the agreed time, etc. then this should be stated. If one student
does 30% of the work because the other student simply went off and did it all by
themselves and without consultation then this should be stated.
Electronic submission
• You should submit the entire Visual Studio project folder compressed as a ZIP
file. Do not submit a RAR archive.
How to submit
Paper submission
• Print the programs which you have modified in landscape orientation. Do not
provide screen shots of the code or print with a coloured background.
• Firmly staple together all of the required documents (with the signed cover page
on top) and place them in the appropriate submissions box near the ICT Help
Desk. Your assignment will not be marked unless this is present.
Electronic submission
• The entire Visual Studio project folder should be converted into a ZIP file and
the ZIP file should be submitted via MyLO by one member of the pair. Only one
submission is required.
o Log in to MyLO and navigate to the Assignments tool under the
Assessments icon in the top tool bar.
o Select Assignment 3 from the list of available drop-boxes.
o Click on Add a File and follow the instructions to attach your
ZIPped project folder and then click Add. Then click Submit.
• If you want to resubmit, name your revised ZIPped project folder ‘version 2’ and
repeat the paper and electronic submission process.
5/5
• The program is required to work under the Visual Studio environment in the
labs. Any development environment may be used; once the programming is
complete replace the altered programs in the downloaded Visual Studio project
and submit it.
Remember that only one paper and electronic submission is required per pair.
Plagiarism and Cheating:
Practical assignments are used by the School of Technology, Environments and Design
for students to both reinforce and demonstrate their understanding of material which has
been presented in class. They have a role both for assessment and for learning. It is a
requirement that work you hand in for assessment is substantially your own.
Working with others
One effective way to grasp principles and concepts is to discuss the issues with your
peers and/or friends. You are encouraged to do this. We also encourage you to discuss
aspects of practical assignments with others. However, once you have clarified the
principles, your pair must express them in writing or electronically entirely by
yourselves. In other words you must develop the algorithm to solve the problem and
write the program which implements this algorithm with your partner and no one else
(other than staff).
Cheating
• Cheating occurs if you claim work as your own when it is substantially the work
of someone else.
• Cheating is an offence under the Ordinance of Student Discipline within the
University. Furthermore, the ICT profession has ethical standards in which
cheating has no place.
• Cheating involves two or more parties.
o If you allow written work, computer listings, or electronic version of
your code to be viewed, borrowed, or copied by another student you are
an equal partner in the act of cheating.
o You should be careful to ensure that your work is not left in a situation
where it may be accessed/stolen by others.
• Where there is a reasonable cause to believe that a case of cheating has occurred,
this will be brought to the attention of the unit lecturer. If the lecturer considers
that there is evidence of cheating, then no marks will be given to any of the
students involved. The case will be referred to the Head of School for
consideration of further action.
Julian Dermoudy, May 4th
2019.

More Related Content

What's hot

Putting the science in computer science
Putting the science in computer sciencePutting the science in computer science
Putting the science in computer science
Felienne Hermans
 
Rethinking Object Orientation
Rethinking Object OrientationRethinking Object Orientation
Rethinking Object Orientation
IASA
 
Why test with flex unit
Why test with flex unitWhy test with flex unit
Why test with flex unit
michael.labriola
 
Final requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary ClemenceFinal requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary Clemence
clemencebonifacio
 
Worksheet a
Worksheet aWorksheet a
Worksheet a
Alain Nazzal
 
INF 103 Exceptional Education - snaptutorial.com
INF 103  Exceptional Education - snaptutorial.comINF 103  Exceptional Education - snaptutorial.com
INF 103 Exceptional Education - snaptutorial.com
DavisMurphyB9
 

What's hot (6)

Putting the science in computer science
Putting the science in computer sciencePutting the science in computer science
Putting the science in computer science
 
Rethinking Object Orientation
Rethinking Object OrientationRethinking Object Orientation
Rethinking Object Orientation
 
Why test with flex unit
Why test with flex unitWhy test with flex unit
Why test with flex unit
 
Final requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary ClemenceFinal requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary Clemence
 
Worksheet a
Worksheet aWorksheet a
Worksheet a
 
INF 103 Exceptional Education - snaptutorial.com
INF 103  Exceptional Education - snaptutorial.comINF 103  Exceptional Education - snaptutorial.com
INF 103 Exceptional Education - snaptutorial.com
 

Similar to Car removal gold coast

Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
Hamad Odhabi
 
DISE - Programming Concepts
DISE - Programming ConceptsDISE - Programming Concepts
DISE - Programming Concepts
Rasan Samarasinghe
 
Class tech courseware
Class tech coursewareClass tech courseware
Class tech courseware
sr3woodall
 
New folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docx
New folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docxNew folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docx
New folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docx
henrymartin15260
 
CSCI 180 Project Grading  Your project is graded based .docx
CSCI 180 Project Grading   Your project is graded based .docxCSCI 180 Project Grading   Your project is graded based .docx
CSCI 180 Project Grading  Your project is graded based .docx
faithxdunce63732
 
INF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comINF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.com
lechenau48
 
INF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.comINF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.com
lechenau71
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdf
MarilouANDERSON
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
zulfikarzulfikar40
 
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
CSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docxCSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docx
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
faithxdunce63732
 
CSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docx
CSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docxCSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docx
CSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docx
faithxdunce63732
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01
abdalodainat
 
CSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and Func
CSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and FuncCSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and Func
CSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and Func
MargenePurnell14
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
AASTHA76
 
INF 103 Education Specialist / snaptutorial.com
INF 103 Education Specialist / snaptutorial.comINF 103 Education Specialist / snaptutorial.com
INF 103 Education Specialist / snaptutorial.com
McdonaldRyan94
 
6062 comp cwk2 17 18 new template
6062 comp cwk2 17 18 new template6062 comp cwk2 17 18 new template
6062 comp cwk2 17 18 new template
Elliot Byrne
 
Bcsl 013 solved-assignment-2019-20 without
Bcsl 013   solved-assignment-2019-20 withoutBcsl 013   solved-assignment-2019-20 without
Bcsl 013 solved-assignment-2019-20 without
AbhinavSingh732
 
INF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.com
rock123450
 
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxCase Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
wendolynhalbert
 
INF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comINF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.com
rock1234548
 

Similar to Car removal gold coast (20)

Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
DISE - Programming Concepts
DISE - Programming ConceptsDISE - Programming Concepts
DISE - Programming Concepts
 
Class tech courseware
Class tech coursewareClass tech courseware
Class tech courseware
 
New folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docx
New folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docxNew folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docx
New folderCSE2AIF 2015 Assignment 2.pdfCSE2AIF - Artifi.docx
 
CSCI 180 Project Grading  Your project is graded based .docx
CSCI 180 Project Grading   Your project is graded based .docxCSCI 180 Project Grading   Your project is graded based .docx
CSCI 180 Project Grading  Your project is graded based .docx
 
INF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comINF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.com
 
INF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.comINF 103(ASH) Possible Is Everything/newtonhelp.com
INF 103(ASH) Possible Is Everything/newtonhelp.com
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdf
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
 
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
CSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docxCSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docx
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
 
CSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docx
CSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docxCSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docx
CSE 110 - ASSIGNMENT # 4 – Fall 2015 Due Tuesday Octobe.docx
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01
 
CSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and Func
CSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and FuncCSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and Func
CSE 1310 – Spring 21Introduction to ProgrammingLab 4 Arrays and Func
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
 
INF 103 Education Specialist / snaptutorial.com
INF 103 Education Specialist / snaptutorial.comINF 103 Education Specialist / snaptutorial.com
INF 103 Education Specialist / snaptutorial.com
 
6062 comp cwk2 17 18 new template
6062 comp cwk2 17 18 new template6062 comp cwk2 17 18 new template
6062 comp cwk2 17 18 new template
 
Bcsl 013 solved-assignment-2019-20 without
Bcsl 013   solved-assignment-2019-20 withoutBcsl 013   solved-assignment-2019-20 without
Bcsl 013 solved-assignment-2019-20 without
 
INF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.com
 
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxCase Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
 
INF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comINF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.com
 

Recently uploaded

Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024
FelixPerez547899
 
Structural Design Process: Step-by-Step Guide for Buildings
Structural Design Process: Step-by-Step Guide for BuildingsStructural Design Process: Step-by-Step Guide for Buildings
Structural Design Process: Step-by-Step Guide for Buildings
Chandresh Chudasama
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
aragme
 
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
AnnySerafinaLove
 
Income Tax exemption for Start up : Section 80 IAC
Income Tax  exemption for Start up : Section 80 IACIncome Tax  exemption for Start up : Section 80 IAC
Income Tax exemption for Start up : Section 80 IAC
CA Dr. Prithvi Ranjan Parhi
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
LuanWise
 
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
my Pandit
 
Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024
Kirill Klimov
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Chapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .pptChapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .ppt
ssuser567e2d
 
Digital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on SustainabilityDigital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on Sustainability
sssourabhsharma
 
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdfThe 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
thesiliconleaders
 
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdfHOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
46adnanshahzad
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
hartfordclub1
 
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
Lacey Max
 
Top mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptxTop mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptx
JeremyPeirce1
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
Top Forex Brokers Review
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
my Pandit
 

Recently uploaded (20)

Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024
 
Structural Design Process: Step-by-Step Guide for Buildings
Structural Design Process: Step-by-Step Guide for BuildingsStructural Design Process: Step-by-Step Guide for Buildings
Structural Design Process: Step-by-Step Guide for Buildings
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
 
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
 
Income Tax exemption for Start up : Section 80 IAC
Income Tax  exemption for Start up : Section 80 IACIncome Tax  exemption for Start up : Section 80 IAC
Income Tax exemption for Start up : Section 80 IAC
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
 
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
 
Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
 
Chapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .pptChapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .ppt
 
Digital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on SustainabilityDigital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on Sustainability
 
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdfThe 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
 
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdfHOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
 
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
 
Top mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptxTop mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptx
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
 

Car removal gold coast

  • 1. 1/5 KIT107 Programming 2019 Assignment 3 Due Date The assignment is due at 3PM Wednesday May 29th 2019 and should be completed in pairs using the Pair Programming technique. Context Famous people don’t like to share the lime-light with other famous people. Sick people need to be kept away from other sick/well people. Table plans for wedding receptions need to have family members that don’t get along kept away from each other. N-Queens is a problem from the board game of Chess which has many such real-life applications. In N-Queens, a board of N rows and N columns must have N Queens placed on the NxN squares of the board such that there is only one Queen on each row, each column, and on the diagonals of each square. An example of 8-Queens is shown below. Task Your task is to implement the N-Queens problem in C so that the computer will find the solution for you. The computer will select moves by creating a game tree. A game tree consists of all the possible states of the game and in this assignment the computer determines any possible solution to be the best one. Each node of the game tree has children that indicate the states of the game that follow from the state of the parent for each possible move, i.e. each node in the tree possesses at most NxN children of any node but as more moves are made, or if a smaller board is used, then there will become less. This assignment uses many data structures (trees, linked-lists, stacks, and queues) to solve the puzzle. You should create and traverse the game tree using a stack and queue as intermediate data structures. When a solution is found the solution should be displayed. The program will be text only.
  • 2. 2/5 A Visual Studio project file is available for download from MyLO. The project contains many header (.h) and source (.c) files. All required files are present. You should not add any further files or change any code which is provided (other than the settings in assig_three119.h). You need to complete the functions within the program files which have been declared but for which the function bodies are missing and to update the header comments of the source files that you complete with your names, student IDs and ratio of effort. Please note: there is not enough memory granted by the operating system to the running program to solve the depth-first problem on an 8x8 board or larger, or the breadth-first problem on a 6x6 board or larger. Sample runs of the game are shown below. Please also note that there is no solution available for 2-Queens or 3-Queens.
  • 3. 3/5 Marking scheme Task/Topic Maximum mark Program operates as specified square_state.c correctly completed 2 game_state.c correctly completed 10 t_node.c correctly completed 5 game_tree.c correctly completed 21 stack.c correctly completed 5 queue.c correctly completed 5 Program Style Does not unnecessarily repeat tests or have other redundant/confusing code 6 Uses correctly the C naming conventions 6 Alignment of code and use of white space makes code readable 6 Always uses blocks in branch and loop constructs 6 Meaningful identifiers 6 Variables declared at the top of functions 6 Each variable declaration is commented 6 Comments within the code indicate the purpose of sections of code (but DO NOT just duplicate what the code says) 6 Program Style Your program should follow the following coding conventions: • const variable identifiers should be used as much as possible, should be written all in upper case and should be declared before all other variables; • Variable identifiers should start with a lower case letter, be meaningful, and variables should only be declared at the top of a function; • Every if and if-else statement should have a block of code (i.e. collections of lines surrounded by { and }) for both the if part and the else part (if used); • Every loop (do, while, for) should have a block of code; • The keyword continue should not be used; • The keyword break should only be used as part of a switch statement; • Opening and closing braces of a block should be aligned; • All code within a block should be aligned and indented 1 tab stop (or 4 spaces) from the braces marking this block; • Commenting: o There should be a block of header comment which includes at least  file name  student names  student identity numbers  an indication of the ratio of effort, if this is missing 50:50 will be assumed  a statement of the purpose of the program  date o Each variable declaration should be commented o There should be a comment identifying groups of statements that do various parts of the task
  • 4. 4/5 o Comments should describe the strategy of the code and should not simply translate the C into English Style marks will be awarded proportionally, i.e. if you attempt only half the coding you can expect only half the style marks. What and how to submit Only one submission is required for the pair but both paper and electronic submission is required for each pair. What to submit Paper submission • A signed cover page (blanks can be collected from the ICT office or from the ICT web site). Your assignment will not be marked unless this is present; • A print-out of the six ‘.c’ source code files for the program; and • A statement from each person indicating what proportion of the work was theirs. If the work was done equally, then each person should claim 50% of the effort. It is expected that this will be the case and this will be assumed if no statement is submitted. If, however, one person has done very little, then this should be stated. A reason why this is the case should be given. For example, if one student does 80% of the work because their partner did not turn up to meetings, complete work by the agreed time, etc. then this should be stated. If one student does 30% of the work because the other student simply went off and did it all by themselves and without consultation then this should be stated. Electronic submission • You should submit the entire Visual Studio project folder compressed as a ZIP file. Do not submit a RAR archive. How to submit Paper submission • Print the programs which you have modified in landscape orientation. Do not provide screen shots of the code or print with a coloured background. • Firmly staple together all of the required documents (with the signed cover page on top) and place them in the appropriate submissions box near the ICT Help Desk. Your assignment will not be marked unless this is present. Electronic submission • The entire Visual Studio project folder should be converted into a ZIP file and the ZIP file should be submitted via MyLO by one member of the pair. Only one submission is required. o Log in to MyLO and navigate to the Assignments tool under the Assessments icon in the top tool bar. o Select Assignment 3 from the list of available drop-boxes. o Click on Add a File and follow the instructions to attach your ZIPped project folder and then click Add. Then click Submit. • If you want to resubmit, name your revised ZIPped project folder ‘version 2’ and repeat the paper and electronic submission process.
  • 5. 5/5 • The program is required to work under the Visual Studio environment in the labs. Any development environment may be used; once the programming is complete replace the altered programs in the downloaded Visual Studio project and submit it. Remember that only one paper and electronic submission is required per pair. Plagiarism and Cheating: Practical assignments are used by the School of Technology, Environments and Design for students to both reinforce and demonstrate their understanding of material which has been presented in class. They have a role both for assessment and for learning. It is a requirement that work you hand in for assessment is substantially your own. Working with others One effective way to grasp principles and concepts is to discuss the issues with your peers and/or friends. You are encouraged to do this. We also encourage you to discuss aspects of practical assignments with others. However, once you have clarified the principles, your pair must express them in writing or electronically entirely by yourselves. In other words you must develop the algorithm to solve the problem and write the program which implements this algorithm with your partner and no one else (other than staff). Cheating • Cheating occurs if you claim work as your own when it is substantially the work of someone else. • Cheating is an offence under the Ordinance of Student Discipline within the University. Furthermore, the ICT profession has ethical standards in which cheating has no place. • Cheating involves two or more parties. o If you allow written work, computer listings, or electronic version of your code to be viewed, borrowed, or copied by another student you are an equal partner in the act of cheating. o You should be careful to ensure that your work is not left in a situation where it may be accessed/stolen by others. • Where there is a reasonable cause to believe that a case of cheating has occurred, this will be brought to the attention of the unit lecturer. If the lecturer considers that there is evidence of cheating, then no marks will be given to any of the students involved. The case will be referred to the Head of School for consideration of further action. Julian Dermoudy, May 4th 2019.