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, 4th Edition - Chapter 20 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 hard-coded calls, lines 14-28 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, name/n
-addWSex, name, sex/n
-childOfIs, name, name/n
-sexOfIs, name, sexn
-print, relationship; name
-Request list of people matching a relationship, i.e., 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.
Starting Out With Java, Tony Gladdis, 4 th

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!