Programming Assignment - Software Paradigms | CSCI 169, Assignments of Computer Science

Material Type: Assignment; Professor: Bellaachia; Class: Software Paradigms; Subject: Computer Science; University: George Washington University; Term: Fall 2007;

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-sh9
koofers-user-sh9 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
The George Washington University
School of Engineering and Applied Science
Department of Computer Science
CSci 169 – Software Paradigms Fall 2007
Programming Assignment
Getting Started: C++/Java
Due Date: October 3, 2007
Instructor: A. Bellaachia
In this project, we would like to create a system that keeps information about a collection of
individuals. The collection might represent registered voters in a given region. The input
information for each individual is:
ID, Name, gender, father’s name or ID, mother’s name or ID, DOB.
We assume the following:
There is no duplicate,
All sibling have the same parents,
All parents are married
Our objective in this project is to answer the relationships that exist among individuals.
Examples of possible questions are:
How many children does John have?
Who are the uncles of John?
Who is the sibling of Suzan?
Is Mary a mother, grandmother of both John and Suzan?
You are required to outline your solution in the report. Your solution should use linked list
data structures.
The system should be interactive and give the following information:
Help: Print on the screen a summary of available commands
Info: Information about each individual.
Add: Insert a new individual if it is not already in the system and update
all related information.
Update: Update information of a specific individual.
Retrieve: Answer the above questions about the relationships between
individuals.
Quit: Quit the application.
1. Develop your system using Java (Make sure you include a test driver for your
application)
2. Develop your system using C++ (Make sure you include a test driver for your application)
Notes:
- Make sure you include constructors in your classes.
- Also make
accessors and mutators
methods to get the properties of an object.
- Make Your own assumptions and state them in your report.

Partial preview of the text

Download Programming Assignment - Software Paradigms | CSCI 169 and more Assignments Computer Science in PDF only on Docsity!

The George Washington University

School of Engineering and Applied Science

Department of Computer Science

CSci 169 – Software Paradigms – Fall 2007

Programming Assignment

Getting Started: C++/Java

Due Date: October 3, 2007

Instructor: A. Bellaachia

In this project, we would like to create a system that keeps information about a collection of individuals. The collection might represent registered voters in a given region. The input information for each individual is:

ID, Name, gender, father’s name or ID, mother’s name or ID, DOB.

We assume the following:

  • There is no duplicate,
  • All sibling have the same parents,
  • All parents are married

Our objective in this project is to answer the relationships that exist among individuals. Examples of possible questions are:

  • How many children does John have?
  • Who are the uncles of John?
  • Who is the sibling of Suzan?
  • Is Mary a mother, grandmother of both John and Suzan?

You are required to outline your solution in the report. Your solution should use linked list data structures.

The system should be interactive and give the following information:

  • H elp: Print on the screen a summary of available commands
  • I nfo: Information about each individual.
  • A dd: Insert a new individual if it is not already in the system and update all related information.
  • U pdate: Update information of a specific individual.
  • R etrieve: Answer the above questions about the relationships between individuals.
  • Q uit: Quit the application. **1. Develop your system using Java (Make sure you include a test driver for your application)
  1. Develop your system using C++ (Make sure you include a test driver for your application)**

Notes:

  • Make sure you include constructors in your classes.
  • Also makeaccessors and mutators methods to get the properties of an object.
  • Make Your own assumptions and state them in your report.