SlideShare a Scribd company logo
1 of 5
Download to read offline
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 scienceFelienne Hermans
 
Rethinking Object Orientation
Rethinking Object OrientationRethinking Object Orientation
Rethinking Object OrientationIASA
 
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 Clemenceclemencebonifacio
 
INF 103 Exceptional Education - snaptutorial.com
INF 103  Exceptional Education - snaptutorial.comINF 103  Exceptional Education - snaptutorial.com
INF 103 Exceptional Education - snaptutorial.comDavisMurphyB9
 

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 programmingHamad Odhabi
 
Class tech courseware
Class tech coursewareClass tech courseware
Class tech coursewaresr3woodall
 
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.docxhenrymartin15260
 
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 .docxfaithxdunce63732
 
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.comlechenau71
 
INF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comINF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comlechenau48
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdfMarilouANDERSON
 
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.docxfaithxdunce63732
 
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.docxfaithxdunce63732
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01abdalodainat
 
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 FuncMargenePurnell14
 
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.docxAASTHA76
 
INF 103 Education Specialist / snaptutorial.com
INF 103 Education Specialist / snaptutorial.comINF 103 Education Specialist / snaptutorial.com
INF 103 Education Specialist / snaptutorial.comMcdonaldRyan94
 
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 templateElliot 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 withoutAbhinavSingh732
 
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.comrock123450
 
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.docxwendolynhalbert
 
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.comrock1234548
 

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) 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
 
INF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/newtonhelp.comINF 103(ASH) Learn/newtonhelp.com
INF 103(ASH) Learn/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

Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...meghakumariji156
 
BADDI 💋 Call Girl 9827461493 Call Girls in Escort service book now
BADDI 💋 Call Girl 9827461493 Call Girls in  Escort service book nowBADDI 💋 Call Girl 9827461493 Call Girls in  Escort service book now
BADDI 💋 Call Girl 9827461493 Call Girls in Escort service book nowkapoorjyoti4444
 
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSDurg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSkajalroy875762
 
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAIGetting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAITim Wilson
 
SRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in Escort service book now
SRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in  Escort service book nowSRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in  Escort service book now
SRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in Escort service book nowkapoorjyoti4444
 
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service AvailableNashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Availablepr788182
 
GUWAHATI 💋 Call Girl 9827461493 Call Girls in Escort service book now
GUWAHATI 💋 Call Girl 9827461493 Call Girls in  Escort service book nowGUWAHATI 💋 Call Girl 9827461493 Call Girls in  Escort service book now
GUWAHATI 💋 Call Girl 9827461493 Call Girls in Escort service book nowkapoorjyoti4444
 
Cuttack Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Cuttack Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableCuttack Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Cuttack Call Girl Just Call 8084732287 Top Class Call Girl Service Availablepr788182
 
KOLKATA 💋 Call Girl 9827461493 Call Girls in Escort service book now
KOLKATA 💋 Call Girl 9827461493 Call Girls in  Escort service book nowKOLKATA 💋 Call Girl 9827461493 Call Girls in  Escort service book now
KOLKATA 💋 Call Girl 9827461493 Call Girls in Escort service book nowkapoorjyoti4444
 
Bankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Bankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service AvailableBankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Bankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Availablepr788182
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Adnet Communications
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...daisycvs
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon investment
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Puja Sharma
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwaitdaisycvs
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 MonthsIndeedSEO
 
Solan Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Solan Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableSolan Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Solan Call Girl Just Call 8084732287 Top Class Call Girl Service Availablepr788182
 

Recently uploaded (20)

WheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond InsightsWheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond Insights
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
BADDI 💋 Call Girl 9827461493 Call Girls in Escort service book now
BADDI 💋 Call Girl 9827461493 Call Girls in  Escort service book nowBADDI 💋 Call Girl 9827461493 Call Girls in  Escort service book now
BADDI 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSDurg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
 
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAIGetting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
 
SRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in Escort service book now
SRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in  Escort service book nowSRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in  Escort service book now
SRI GANGANAGAR 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service AvailableNashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
 
GUWAHATI 💋 Call Girl 9827461493 Call Girls in Escort service book now
GUWAHATI 💋 Call Girl 9827461493 Call Girls in  Escort service book nowGUWAHATI 💋 Call Girl 9827461493 Call Girls in  Escort service book now
GUWAHATI 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Cuttack Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Cuttack Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableCuttack Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Cuttack Call Girl Just Call 8084732287 Top Class Call Girl Service Available
 
KOLKATA 💋 Call Girl 9827461493 Call Girls in Escort service book now
KOLKATA 💋 Call Girl 9827461493 Call Girls in  Escort service book nowKOLKATA 💋 Call Girl 9827461493 Call Girls in  Escort service book now
KOLKATA 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Bankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Bankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service AvailableBankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Bankura Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Home Furnishings Ecommerce Platform Short Pitch 2024
Home Furnishings Ecommerce Platform Short Pitch 2024Home Furnishings Ecommerce Platform Short Pitch 2024
Home Furnishings Ecommerce Platform Short Pitch 2024
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
 
HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Solan Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Solan Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableSolan Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Solan Call Girl Just Call 8084732287 Top Class Call Girl Service Available
 

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.