Question: Starting Out With Java, Tony Gladdis, 4 th Edition - Chapter 2 0 Programming Challenge A - Family Trees ( Can I get the FamilyTreeDemo
Starting Out With Java, Tony Gladdis, th Edition Chapter Programming Challenge A Family Trees Can I get the FamilyTreeDemo The screenshot class code edited to fit specifications
Specifications:
Modify FamilyTreeDemo by removing the existing hardcoded calls, lines and replace them by continually looping through a menu of options. The menus options will include the users ability to:
Stop the menu looping with the input: Stop
Specify a source of input: input from filename or standard IO this option appears each time through the loop, so one can employ several file of input
File content will be a series of lines, each one of the following forms:
add, namen
addWSex, name, sexn
childOfIs, name, namen
sexOfIs, name, sexn
print, relationship; name
Request list of people matching a relationship, ie the user will provide a persons name and a relationship and the program will then display a list of those matching the request, including:
Siblings already coded in FamilyTreeDemo
Sisters
Brothers
Children already coded in FamilyTreeDemo
Sons
Daughters
Parents already coded in FamilyTreeDemo
Father already coded in FamilyTreeDemo
Mother
Aunts
Uncles
First Cousins
Grand Parents
Grand Mother
Grand Father
Great Aunts
Great Uncles
Grand Children
Grand Daughters
Grand Sons
Second Cousins
All Person names are assumed to be unique.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
