Pascal Programming Exercises

  1. Exercise1 - Counting e's in a line of text entered from the keyboard.
  2. Exercise2 - Choosing the largest of ten numbers entered from the keyboard.
  3. Exercise3 - Choosing the first alphabetically from a list of names entered from the keyboard.
  4. Exercise4 - Enter five names from the keyboard and then display them in reverse order.
  5. Exercise5 - Enter up to fifty names and have them stored to disc in a file (NAMES.DTA).
  6. Exercise6 - Randomly generate five numbers, then print them unsorted and then sorted.
  7. Exercise7 - As per Exercise 6, but with a better sort algorithm.
  8. Exercise8 - Read from disc the file created in Exercise5, sort the names and then display them to screen.
  9. Exercise9 - Read a file from disc (EXERCISE9.DTA) and display to screen.


Demonstration programs available here: exercises.zip

 
Send mail to ljschwerin@hotmail.com with questions or comments about this web site.

Copyright © 1999-2002 Leon Schwerin
Last modified: 26 March 2000
1