Computor problem solving;

Computor problem solving;

discusse ideas with other colleagues and this will reflected in the report you produce (20% of the marks are allocated to your discussion of groupwork) but the report

and the solution (and code) you produce must be your own. You must must included the front two sheets of the brief – the marking scheme or lose 10% of the overall



Using the Greenfoot Scenario provided on NILE produce a routine to control a ball to navigate around the maze using left, right, up and down keys.

Rules (Basic)
•    The ball must only travel when on the ‘sand’-coloured blocks otherwise it should not move.
•    The ball must move one whole ‘sand’-coloured blocks at a time every time a movement key is pressed (when movement is possible).
•    Must use the scenario provided.
•    Must stop when it the ball reaches the grey block at the end of the maze.
•    To complete the basic solution you must correct the code in the following methods within the GoldenBall class.(A copy of the methods is shown in Appendix A).

Methods contain the errors are:
o        canMove(int x, int y)
o        key()
Rules (Advanced)
o    For higher grades on the solution part of the assignment see the marking scheme at the front of the brief. You must NOT change the layout and all changes

should still meet the criteria of Rules (Basic).

•    A document containing the following in either (PDF/Word/RTF)
o    An introduction – An introduction to the whole report, including that the reader will see both the groupwork discussion and the work related to the task.
o    Evidence of working in a group. You need to describe any advantages and disadvantage you found in working with others to find your own solution to the problem.

It is expected that good work here would include evidence how it happened for example a diary, posting and responding to posts of the assignment forum, etc.
o    Introduction to the task and your solution
o    Analysis and design
o    Final Code
o    Testing can include video links showing the results. The links can be hosted on your own areas of the web server.
o    Conclusions
?    What did you find out? You could include any conclusions you drew about groupwork here as well.
?    What are the strengths and weaknesses of your solution?
?    What changes could be made if you were starting again? How would you improve your solution?

Useful resources

•    Centre for Academic Practice (2013)Rough Guide to Harvard Referencing University of Northampton[online] . Available from: [Accessed on 20/10/2013]
•    Greenfoot(2013) Greenfoot tutorials Greenfoot [online] Available from [Accessed on 20/10/2013]
•    Greenfoot(2013) Greenfoot reference Greenfoot [online]. Available from: [Accessed on 20/10/2013]

Learning Objectives.

a)    Appreciate the principles and practice of analysis and design in the construction of robust, maintainable programs, which satisfy their specifications.
b)    Design, write, compile, test and execute straightforward programs using a high level language; appreciate the principles of programming.
c)    Appreciate the need for a professional approach to design and the importance of good documentation to the finished programs.
d)    Use an appropriate programming language to construct robust, maintainable programs, which satisfy their specifications.
e)    Design, write, compile, test and execute programs taking into consideration principles of programming.
f)    Apply skills to enable the solution of problems with the construction of appropriate algorithms and a computer program.
g)    Apply group-work skills to enable the solution of problems.


Leave a Reply

Your email address will not be published. Required fields are marked *