Question
Write a family database program. Create a class to represent a person and to store references to the persons mother, father, and any children the
Write a family database program. Create a class to represent a person and to store references to the persons mother, father, and any children the person has. Read a file of names to initialize the name and parentchild relationships of each Person. (You might wish to create a file representing your own family tree.) Store the overall list of Persons as an ArrayList. Write an overall main user interface that asks for a name and prints the maternal and paternal family line for that person.
Heres a hypothetical execution of the program, using as an input file the line of English Tudor monarchs:
Person's name? Henry VIII Maternal line: Henry VIII Elizabeth of York Paternal line: Henry VIII Henry VII Children: Mary I Elizabeth I Edward VI
**It have to include only two class file which are person (declare the person), and the main class file Family
person.txt
Henry VII
Arthur
Catherine of Aragon
Henry VIII
Anne Boleyn
Jane Seymour
Mary I
Elizabeth I
Edward VI bv
Margaret
James IV
James V
Mary of Guise
Mary, Queen of Scots
Henry, Lord Darnley
James VI & I
Mary
Charles Brandon
Frances
Henry Grey
Lady Jane Grey
Elizabeth of York
Margaret Stuart
END
Arthur
Elizabeth of York
Henry VII
Henry VIII
Elizabeth of York
Henry VII
Margaret
Elizabeth of York
Henry VII
Mary
Elizabeth of York
Henry VII
Mary I
Catherine of Aragon
Henry VIII
Elizabeth I
Anne Boleyn
Henry VIII
Edward VI
Jane Seymour
Henry VIII
James V
Margaret
James IV
Mary, Queen of Scots
Mary of Guise
James V
James VI & I
Mary, Queen of Scots
Henry, Lord Darnley
Frances
Mary
Charles Brandon
Lady Jane Grey
Frances
Henry Grey
Henry, Lord Darnley
Margaret Stuart
unknown
Margaret Stuart
Margaret
unknown
END
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started