Project to explore family relationships.
Complete the following exercises:
Please implement code and data structures that read the files
src/test/java/resources/people.csv
src/test/java/resources/relationships.csv
and use them to build an in-memory data structure that represents the people in the file and their relationships with each other.
Write a test to validate that you have loaded the expected number of people.
Write a test to validate that the following people have the correct expected number of connections to other people
Bob (4 relationships) Jenny (3 relationships) Nigel (2 relationships) Alan (0 relationships)
Write a method which, when passed the object representing a particular person, returns an int representing the size of their extended family including themselves. Their extended family includes anyone connected to them by a chain of family relationships of any length, so your solution will need to work for arbitrarily deep extended families. It should not count their friends. Write tests that validate this returns the correct result for the families of:
Jenny (4 family members) Bob (4 family members)
In memory database. No strong error checking is needed