AS91896 - Use advanced programming techniques to develop a computer program
Brief
You are to create your own video game in Unity. In this game you will need to write your own code for at least a major chunk of it.
This custom code will then be assessed when you are completed. It will need to include the following: - Loops - If Statements - Two different types of Variable (Boolean, text, number) - Functions that use Parameters and return values - Modifies data stored in arrays - Takes input from the user and produces output - Non-core libraries - Respond to events from a GUI |
Specifications
Basic program Specifications:
- You need to create a game that meets the requirements for your planned game in the other assessments. For Achieved: - Write the code for the program that performs the above task - Use ALL the different types of coding techniques that are required for a computer program* - Use at least two advanced techniques* for Coding - Set out the program code clearly and document the program with comments - Test and debug the program to ensure it works on a sample of expected cases. (documentation is needed) For Merit: - Ensure you have used appropriate names and comments that describe code function and behavior. i.e. instead of using x as a variable use firstName. - Follow all the common conventions for the chosen programming language. i.e. formatting, camel case, correct tabbing etc. Ensure that the right variables are local and global. - Test and debug the program effectively to ensure that it works with both expected cases and relevant boundary cases. e.g. what happens if someone enters a name with 256 characters? what happens if someone enters for then 20 customers? (documentation is needed) For Excellence: - Ensure that the program is a well structured, logical response to the specified task. This means ensuring that the program is not convoluted with unnecessary code and that it makes sense. It would be expected that the program is broken down into many different functions. - Make the program Flexible and Robust - Comprehensively testing and debugging the program. (No errors should occur no matter how much a client tries to break it). |
Terms of Reference
A Computer Program:
- Use variables storing at least two types of data (String, Number and Boolean). - Use sequence, selection (if statements), and iteration(loops) control structures. - Takes input from a user - Produce output - Uses functions and arrays* You must pick at least two Advanced Techniques: - Arrays: Modifying data stored in an array (changing values inside the array as per update) - Storing data in a multidimensional collections. - Functions: That have parameters passed through and that return values - Responding to events generated by the Game Graphical user interface - Using non-trivial string manipulation (This would be like going through a name and hanging the first letter to upper case, but changing the others to lower case). - Using additional non-core libraries. Examples of Flexibility and Robustness: - using actions, conditions, control structures and methods, functions, or procedures effectively - checking input data for validity - correctly handling expected, boundary and invalid cases - using constants, variables and derived values in place of literals. |
Non-core libraries in Unity:
|
How do I hand this In? - File Management
I have created a template for you to use to hand in documentation. You need to hand in the template with the code copied and pasted into it, your html file and your zip file. The template is on the word link on the right. Fill it out and name it like this: MarkSutherland-AS91896-Attempt1 Then a.) Share it on OneDrive b.) Send it by email c.) Hand it in on USB. |