Skip to content

AS92004 example assessment Build a fruit grading tool for an orchard packhouse

Students write a program that a kiwifruit packhouse supervisor uses to grade a sample tray of fruit by weight, report the counts, average and reject rate, and flag a batch for re-sorting. The task gives natural expected, boundary and invalid cases, so students can show every grade step through their code and their testing.
Level 1Internal5 credits

For AS92004: Create a computer program (NCEA standard 92004).

Scenario

Kōwhai Lane Orchard is a fictional family orchard near Te Puke.

Suits

Year 11 Digital Technologies (programming), NCEA Level 1

In the pack

4 task parts, 4 resource sheets, marking schedule and teacher notes

The task

You are going to build a program for the packhouse supervisor at Kōwhai Lane Orchard, a kiwifruit orchard near Te Puke. The supervisor weighs a sample tray of fruit from each bin and needs to know quickly how many fruit fall in each grade, the average weight, and whether too many are rejects.

Your program must do this reliably at the end of a long shift, when people make typing mistakes. Read the supervisor's brief on Resource 1 carefully: it is the specification your program must meet.

You will also plan and carry out testing to show your program works, and fix any faults you find.

Part 1: Understand the brief and plan

  1. Read Resource 1 (the supervisor's brief). Highlight every input, output, rule and number the program must handle.
  2. List the variables your program will need and the data type of each one (for example, a whole number weight, a decimal average, a text grade name, a true/false flag).

For the teacher

  • This task assesses AS92004 version 2, Create a computer program (Level 1, 5 credits, internal).
  • Students build one program to a written brief and test it.
  • The brief has been designed so that the required program features come naturally: the weights are stored in a list, the program takes repeated user input, uses selection to grade each fruit and iteration to collect and summarise the sample, and can work with whole numbers, decimals and text (and true/false values if the student chooses).
  • The grade cut-offs and the re-sort rule create real boundaries for Merit testing, and messy scale entries (text, blanks, zero, impossible weights, an empty sample) give real invalid cases for Excellence.
More for the teacher (2)
  • NCEA Level 1 is due to be replaced by a new Year 11 qualification from 2028 under the Government's announced changes; check NZQA for the last year this standard can be assessed before you plan beyond 2027.
  • The program built for this standard cannot also be used as the outcome for AS92005.

The full assessment

Student task

  • Part 1: Understand the brief and plan
  • Part 2: Write the program
  • Part 3: Plan and carry out testing
  • Part 4: Debug and improve

Resource sheets

  • Resource 1: The supervisor's brief
  • Resource 2: Sample trays for expected-case testing
  • Resource 3: Test plan template
  • Resource 4: Debugging log

Assessment schedule

  • What Achieved, Merit and Excellence look like in this task, with example evidence
  • Common reasons work isn't at Achieved yet

Teacher notes

  • Conditions and preparation
  • Keeping the work authentic
  • Other contexts the task works in
  • Resubmission

How to plan AS92004All NCEA Digital Technologies standards