1.0050.a.    Set up the needed structure template (call it struct booktemplate) to link the list alphabetically by author (make up string lengths as you see fit).

 

struct booktemplate { char title[30], author[25];

                                          int yrwritten, value;

                                          struct booktemplate * next; };

 

Note:  yrwritten could be stored as a character string. I have chosen to store it as a (signed) integer (where B.C. dates will be stored as negative values). The field value could also be stored as a real (float).

 

The manner in which I have set up the template requires:

 

30 + 25 + 2 + 2 + 4 = 63 bytes of storage per record, or 5 * 63 = 315 bytes of contiguous RAM allocation