Computer science coursework practice documentation, programmed in Visual Basic
Student achieved grade 9 in GCSE computer science in 2018
Create a program which models a hare and tortoise race
The race is 1000 metres by default; the user can input custom distances between 100 metres and 10 kilometres.
It is divided into rounds; each round the tortoise moves 5-10 metres and the hare moves 8-15 metres (by default). The user can input customised ranges.
There is a 25% chance that the hare will stop for a rest; each round the hare does not stop, this chance increases by 15%. When the hare does have a rest, this value will reset to 25%.
This document contains the following:
A brief introduction to the task
Planning for data structures and procedures
Final code with comments