Example 5
A bar manager would like a program which calculates the darts score when a player throws three darts. The program should print out the three scores and their total.
1. Design a Solution
- write down a design for your solution as we have in the last two examples
- show the completed design to your teacher
2. Code the Program
- type in the code for your program
- save the program as darts.pas
- compile and run the program
3. Test the Program
- as before, draw up a table and choose some suitable numbers to test the program
- write a short summary of the results
4. Evaluation
- write a note giving an evaluation of the program
- show this to your teacher
|