This is a 4 credit internal
This achievement standard involves developing a computer program to carry out a task or activity.
Click here to access the NZQA Digital Technology Achievement Standards page.
Achievement
Develop a computer progam
This involves you: | You can show this by: |
---|---|
writing code for a program that performs a specified task using a suitable programming language | |
writing code that variables storing at least two types of data (e.g. numeric, text, Boolean) | |
setting out the program code clearly | |
documenting the program with comments | |
testing the program to ensure that it works on a sample of expected (valid) cases | |
debugging the program to ensure that it works on a sample of expected (valid) cases | |
write a program that contains all of the required features |
The computer program requires the following features:
Programming Features: | You can show this by: |
---|---|
variable | use a variable such as a string, boolean, integer, float, double, char You must use the variable appropriately in your program first_name = input(“Enter first name”) |
variable of different data type | use a variable such as a string, boolean, integer, float, double, char that is different to the one above |
user input | read input from the keyboard, sensors or other input first_name = input(“Enter first name”) |
user output | print output to the screen output to other devices such as motors print(“Hello World”) |
sequence | code that follows a logical order |
selection | if else statements, case or switch statement, event driven interrupts if num < 5 then do this |
iteration | looping and repeating code. while, for, recursion, event loops while num < 5 do print num |
At least one of the following: | you must show two examples for one of the following, you cannot have one example from each. You can have two examples of each |
data stored in collections | lists, arrays, dictionaries fruit = [‘apple’, ‘banana’, ‘cantaloupe’, ‘durian’] |
user-defined methods, functions or procedures. | functions to handle repetitive input, display blocks of text, handle startup and configuration, carry out specific tasks function get_name(): name = input(“Enter name: “) return name |
Achievement with Merit
Develop an informed computer program
This requires you to:
This involves you: | You can show this by: |
---|---|
documenting the program with variable names and comments that describe code function and behaviour | Comments need to describe and explain the purpose of the different sections of the program. For example explain what are the variables used for, what does the program do, what purpose do the the different parts of the program perform |
following conventions for the chosen programming language | use the standards of the language for example snake_case for Python or CamelCase for C# or other C derived langauges |
testing and debugging the program in an organised way to ensure that it works on expected and relevant boundary cases. | use a structured test plan that is developed before testing begins |
carrying out boundary testing and debugging | Test limits of the program. For example in a loop that should run 5 times test for 4, 5 and 6. These are valid upper extreme, valid boundary limit and invalid upper extreme test values respectively |
Achievement with Excellence
Develop a refined computer program
This involves you: | You can show this by: |
---|---|
ensuring that the program is a well-structured, logical response to the task | |
comprehensively testing and debugging the program | |
making the program flexible and robust (shown by the items below) | |
using methods, functions, procedures, actions, conditions and control structures effectively | |
checking input data for validity | |
correctly handling expected, boundary and invalid values | |
using constants, variables and derived values in place of literals. |