CS 172 Lab 5: Looking at Records and Arrays
This lab looks at defining a
record type for storing information about students, reading
in information and storing it in an array of records, and writing out
the array of records.
- Launch Windows Explorer. Remember
to set the View Options so that known file extensions are NOT
hidden. View your Y:\Ada subdirectory.
- Save the following link:
StudentDataLab.adb
Save the file as Y:\Ada\StudentDataLab.adb
View the directory
listing in Windows Explorer to confirm that the file is now in
your Y:\Ada subdirectory.
- Launch AdaGIDE. Open the file you just created,
Y:\Ada\StudentDataLab.adb.
- The code is an Ada program that has comments that indicate
what its functionality should be. Your task is to:
- Implement the body of GetStudent. Do this by prompting for and
then Getting each of the fields of a StudentRecord.
- Implement the body of PutStudent. Do this by Putting each of
the fields of the record on a single line in a well organized way.
- Finish lines in the main program that output a header for
the output.
- When you are ready you should bring me:
- a printout of your program listing and
- upload your source code