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.

  1. Launch Windows Explorer. Remember to set the View Options so that known file extensions are NOT hidden. View your Y:\Ada subdirectory.
     
  2. 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.
     
  3. Launch AdaGIDE. Open the file you just created, Y:\Ada\StudentDataLab.adb.
     
  4. The code is an Ada program that has comments that indicate what its functionality should be. Your task is to:
    1. Implement the body of GetStudent. Do this by prompting for and then Getting each of the fields of a StudentRecord.
    2. 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.
    3. Finish lines in the main program that output a header for the output.

     
  5. When you are ready you should bring me: