Self-test 2 Solutions

Diagramming structured objects
 
 
1.

 

 
2.

 

 
3.

 

 
 
 
Here, Phone_no is a variable used twice in the same structure. You may optionally indicate that the leaf nodes will have the same value by showing a linkage, as in this diagram.