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 parent-child 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

*******************************

SAVE THIS FILE AS tudor.dat and use the data of this file. The code should be in JAVA.

Henry VII Arthur Catherine of Aragon Henry VIII Anne Boleyn Jane Seymour Mary I Elizabeth I Edward VI 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

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions