previous page main index next page
 

Example 7

A newspaper sports editor would like a program which calculates the numbers of points that a soccer team has. Teams get 2 points for a win, 1 for a draw and 0 if they lose.

1. Design a Solution

  • write down a design for your solution as we have in the last few examples
  • show the completed design to your teacher

2. Code the Program

  • type in the code for your program
  • save it as soccer.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
     
previous page main index next page
 
©2001 by Mike Hardy