| The sales
        department of a small company uses a computer system to
        store information about all its sales staff. | 
    
    
        | (a) One file
        contains the employee number, name, date of birth and
        address of each salesperson. | 
    
    
        | (i) Use this
        example to explain the difference between the two terms field
        and record.  | 
    
    
        A record would consist of all the
        details about one staff member. 
        The data items in the record are the fields. There
        are 4 fields in each record - employee number, name, date
        of birth and address.  | 
    
    
        | (ii) What is
        the advantage of a record over an array? | 
    
    
        A record may have data items of different
        types but an array must have all its elements of the same
        type.  | 
    
    
        | (b) Outline
        an application in this system which might use: | 
    
    
        | (i) a two
        dimensional array; | 
    
    
        A sales analysis for each employee and for
        each day of the week. The subscripts would be the days of
        the week and the sales employee number.  | 
    
    
        | (ii) a three
        dimensional array; | 
    
    
        The analysis in (ii) could be extended to
        cover a number of weeks. The subscripts would be the days
        in the week, the sales employee numbers and the week
        numbers.  |