previous page main index next page
 

Example 6

A teacher would like a program that calculates the average mark for students who sit three tests. Each mark is out of 60 and the program should print out the total mark and the average mark.

1. Design a Solution

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

2. Code the Program

  • type in the code for your program
  • save the program as average1.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