the3 - Middle East Technical University Department of...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Middle East Technical University Department of Computer Engineering CENG 140 Fall 2010-2011 Take Home Exam 3 REGULATIONS Due date: 07 January, 2010 Monday (Not subject to postpone) Submission: Electronically. You will be submitting your program source code through a text file which you will name as the3.c by means of the COW system. Team: There is no teaming up. The homework has to be done and turned in individually. Cheating: The source(s) and the receiver(s) will receive zero and be subject to disciplinary action. FAMILY TREE A family tree is a graphical display of the parent-child relationships. Figure 1 depicts an example family tree where the following ”relative” relationships can be deduced (the list is not complete): Fatma Hasan Sinan Ali Zeynep Veli Brad Angelina Figure 1: An example family tree. Fatma is the mother of Sinan and Ali. Hasan is the father of Sinan and Ali. Sinan is a son of Fatma and Hasan; moreover, he is the father of Brad. Veli is the grandson of Fatma and Hasan. Ali is the uncle of Brad. Sinan is the brother of Ali. PROBLEM In this take-home exam, you will construct a family tree based on the input given by the user. The user will provide your program with sentences of the following form:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Fatma is the mother of Sinan. Sinan is the brother of Veli.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

the3 - Middle East Technical University Department of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online