Gallery
Athletics Scotland
Share
Explore
Athletics Scotland

icon picker
The Task

Activity: Athletics Scotland 👟

Start Here

A program tester has submitted a bug report on about the Athletics Scotland program.
“The program shows no error message but it only outputs one ticket there is no ticket number on it.”
Can you fix the bug?
Look in the table of contents to find the pseudocode among these tutorial files.
Run the program and enter some test values to find out what the program is doing now.
Read the code and compare it to the pseudocode in order to work out what needs to be done.
Add a fixed loop so the program repeats the steps for each customer to ask the full name and display their ticket information
Include the ticket number on each ticket.
Use code clips to get the code needed.
Run the program with test data and make sure it is working correctly.

sample output

Athletics Scotland
====================

Events on offer to watch:
- 100m Sprint
- Relay
- Hurdles
- Long Jump


Which event are you going to see: Hurdles
Number of Tickets: 2


Enter full name: Laura Muir

------------
Athletics Scotland - Grand Prix Event
Event: Hurdles
Full name: Laura Muir
Ticket number: 1
------------


Enter full name: Calum Hawkins

------------
Athletics Scotland - Grand Prix Event
Event: Hurdles
Full name: Calum Hawkins
Ticket number: 2
------------

Remember

Break the problem down!

Don’t try to do the whole program and then test it. Pick the bits that are easy to do first and get them working. This might not be the part of the program at the start. Test the program once that is working move onto another line and repeat.

You do not need to memorise any of the code!

Even the best programmers need to look up commands and the more you use the commands the more familiar they will become.

Everyone gets bugs!🐞

Even the most experienced programmers make mistakes. Try to fix one error at a time.
Good luck! 🍀
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.