Menu

(Solved) : Write Family Database Program Create Class Represent Person Store References Person S Moth Q43971582 . . .

Write a family database program. Create a class to represent aperson and to store references to the person’s mother, father, andany children the person has. Read a file of names to initialize thename and parent–child relationships of each Person. (You might wishto create a file representing your own family tree.) Store theoverall list of Persons as an ArrayList. Write an overall main userinterface that asks for a name and prints the maternal and paternalfamily line for that person.

Here’s a hypothetical execution of the program, using as aninput file the line of English Tudor monarchs:

Person’s name? Henry VIIIMaternal line: Henry VIII Elizabeth of YorkPaternal line: Henry VIII Henry VIIChildren: 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

Expert Answer


Answer to Write a family database program. Create a class to represent a person and to store references to the person’s mother,…

OR