The sum of all the nodes is 121Total number of nodes are: 7So the average is 121/7 = 17.2Output: The average is 17