Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

3. How does nonverbal communication express cultural values?

Answered: 1 week ago

Question

7. What traps should she avoid?

Answered: 1 week ago

Question

5. What decision-making model would you advocate to this person?

Answered: 1 week ago

Question

6. What data will she need?

Answered: 1 week ago