Question 18
AQA Computer Science Specimen Paper 1C (8525/1C)GCSE8 marks
On the specification
- 3.2 Programming
Question text
18 Write a VB.Net program that calculates an estimate of the braking distance in metres for a new model of go-kart that is travelling between 10 and 50 kilometres per hour (kph). Your program should: • keep asking the user to enter a speed for the go-kart until they enter a speed that is between 10 and 50 (inclusive) • calculate the braking distance in metres by dividing the speed by 5 • ask the user if the ground is wet (expect the user to enter yes if it is) • if the ground is wet, multiply the braking distance by 1.5 • output the final calculated braking distance. You should use meaningful variable name(s), correct syntax and indentation in your answer. The answer grid below contains vertical lines to help you indent your code accurately. [8 marks]