Pupil Records Program
Teaching Programming with Turbo Pascal
Copyright © by Mark Baker 1997
Copyright waiver
Return to MarkChrisSoft home page
This is the sheet that I give to pupils when they start to program the pupil records program, towards the end of my learning-to-program course.
Pupils' Records Program
You will need to declare a record type and then make an array of records, eg:
type PupilRecordType = record
name: string[20];
form : string[2];
year : integer;
end;
PupilArrayType = array[0..maxPup-1] of PupilRecordType
var PupilArray: PupilArrayType;
Program Specification
Your program should:
- Use TextMenu appropriately.
- Store the name, address, home phone number, plus 5 other important data items.
- Be able to enter, edit, insert and delete records. To save time, you can implement editing for a minimum of 3 fields.
- Be able to load and save the data to disc, using a file name of the user's choice. When saving, the program should check to see if that file name has been used before. When loading, the program should check to see if that file exists.
- Be able to sort the data into alphabetical order, according to surname (family name).
- Be able to display the data on screen in appropriate formats.
- Be able to search for a particular record, by inputting the pupils name.
What you must do
- Produce a top-down design, showing several levels of refinement. Get this approved by me.
- Design the appropriate date structure(s) and get this approved also.
- Produce the program, using proper indenting and comments from the beginning.
- Test the program- test all features, use legal, extreme and illegal data.
- Document the program (including the testing).
Return to MarkChrisSoft home page
Author: Mark Baker, e-mail mbaker@rmplc.co.uk
Last revision: 4th January 1997