previous page main index next page
 

Example 11

The school PE department requires a program which will calculate average times run by students in the 100yds event. The program should ask for the student's name, their home room class and the best three times that the student has run. The results printed out should show the student's name, their home room class and their average time.

1. Design a Solution

  • use the previous examples to help you design a solution to the problem.
  • show the design to your teacher

2. Code the Program

  • decide what variables you need to use in the program
  • as before, if you're not too sure, then see your teacher before you go any further
  • use your design and type in the code for the program
  • save the program as sports.pas
  • compile and run the program
     
previous page main index next page
 
© 2001