Exercise 3
Suppose you are asked to develop a program that creates and develops thepedigree of a family. Asked to define the main structures (structures or classes) thatwill organize and manage the genealogical tree so that the program be able to answer at least the following issues.
For a random person's genealogical tree to return:
1. What is called the grandfather of his father's side
2. How many grandchildren have the same name
3. How many older sisters has
4. How many half-siblings (boys or girls) have. Called half-siblings who have onlyone from the same two parents
After defining the main structures of organization and management of genealogicaltree write routines that give answers to these questions.