Write a program which reads a file of genealogy information

Assignment Help JAVA Programming
Reference no: EM131588420

Assignment: Tracing Genealogies

This assignment requires to be run on Netbean 8.1 + Java and the use of a UI interface.

A file has genealogy data for a collection of N people. The first line of the file contains the integer N followed by N additional lines of data. Each of these additional lines specifies a list of children for a single person. The line starts with the name of the person, followed by the number of that person's children, followed by the names of the children. Here is an example of a file specifying genealogy information for ten people.

10
Al         3        Beth Carol Dino
Beth     1        Pablo
Carol     3       Ben Alex Mary
Dino      0
Pablo     1       Angela Miguel
Ben       0
Alex      0
Mary      0
Angela   0
Miguel    0

For example, Al has three children named Beth, Carol, and Dino; Beth has one child named Pablo; and Dino has no children. You may assume that all names are unique.

Write a program which reads a file of genealogy information and then allows the user to enter pairs of names X and Y. The program then determines whether Y is a descendant of X, and if so, prints a list of names beginning with X and ending with Y, such that each person in the chain is a child of person preceding them on the list. Otherwise, the program states that Y is not a descendant of X.

Reference no: EM131588420

Questions Cloud

How can taxes affect the firm optimal capital structure : How could bankruptcy costs affect a firm’s WACC? How can taxes affect the firm’s optimal capital structure?
Discuss the ethical and legal concerns of brians actions : Discuss the ethical and legal concerns of Brian's actions. What might the ramifications or consequences of his actions be? Why?
What is the distance covered on the return trip : What is the distance covered on the return trip, as measured by the astronaut? Give your answer in light-years.
Determine the number of occurrences : Write a script that inputs several lines of text and a search character and uses String method index of to determine the number of occurrences of the character.
Write a program which reads a file of genealogy information : Write a program which reads a file of genealogy information and then allows the user to enter pairs of names X and Y.
Think about american foreign policy today : How has foreign policy changed since the late nineteenth century in terms of annexation and nation building?
Which option below would yield greatest future value : Which option below would yield the greatest future value?
Evaluate the types of employee testing : Evaluate the types of employee testing that companies may require that are discussed in the text. Determine the two tests that you consider the most important
Take a few minutes to think about the material : Have you discovered any habits or tips that help you to complete your course work more effectively or efficiently?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd