What does the Fox say? GCSE Computing assignment

I was struck with what I think is *hopefully* a little bit of inspiration earlier, whilst watching the video to current sensation ‘What does the Fox say‘ to work out what all the fuss was about I realised this might make an amusing programming assignment for GCSE computing.

It’s taking a ‘same but different’ approach to the style of the OCR assessments, but instead of investigation something boring they will be producing a program that, once and for all, lets us know what the fox says.

Might be amusing, might be pants. Please feel free to use it if you want.

Example code for Task 1 in Java below, more to follow.

import java.util.*;
import java.math.*;

public class whatTheFox {
public static void main(String[] args) {

//Declaring my variables

String[] animals = {“Dog”,”
String [] sounds = {“Woof”,”Meow”,”Tweet”,”Squeek”,”Moo”,”Croak”,”toot”,”quack”,”blub”,”ow ow ow”,”Morse”,”Ring-ding-ding-ding-dingeringeding!
String userSelection;
boolean hasMatched = false;
int i = 0;

Scanner scan = new Scanner(System.in);

System.out.println(“Ask me, what does the ______ say?”);
System.out.println(“> “);
userSelection = scan.next();

for(i=0;i<animals.length;i++) {

if(userSelection.equalsIgnoreCase(animals[i])) {

System.out.println(animals[i]+” go “+sounds[i]);
hasMatched = true;



if(hasMatched!=true) System.out.println(“I haven’t a clue what a”+userSelection+” says”);


Leave a Reply

Your email address will not be published.