Self-Test 2

Diagramming structured objects
 
You are advised to draw the solutions for all questions before you look at the answers.
 
  Draw trees to represent each of the following structured objects:
 
1.
book('The Worcester pilgrim', 'Lubin', 'Helen').
 
2.
book('The Worcester pilgrim', author('Lubin', 'Helen'), publishdata('Worcester', 'The Chapter', 1990), 0951627406).
 
3.
The following example includes variables as arguments. personnel_rec(name(earnshaw, catherine), address(wuthering_heights), phone(daytime(Phone_no), evening(Phone_no))).