| |
Pascal Programming Exercises
- Exercise1 - Counting e's in a line of text entered from the keyboard.
- Exercise2 - Choosing the largest of ten numbers entered from the keyboard.
- Exercise3 - Choosing the first alphabetically from a list of names entered from
the keyboard.
- Exercise4 - Enter five names from the keyboard and then display them in reverse
order.
- Exercise5 - Enter up to fifty names and have them stored to disc in a file (NAMES.DTA).
- Exercise6 - Randomly generate five numbers, then print them unsorted and then
sorted.
- Exercise7 - As per Exercise 6, but with a better sort algorithm.
- Exercise8 - Read from disc the file created in Exercise5, sort the names and then
display them to screen.
- Exercise9 - Read a file from disc (EXERCISE9.DTA) and display to screen.
Demonstration programs available here: exercises.zip
|