Trees

Getting Started

A Python module is provided that will create a tree of objects. You do not need to create the tree building code. Use the existing module.

See the code at the bottom of the module to create the tree for the projects.

Module - Create a Tree
(Screen scrape and create the file createtree.py)

Example Code

import createtree as t

......................................
....... your code here ...............
......................................

myTree = t.Tree()

t.createTree(myTree)

........... call your code ...........

Project #1

Search a tree for a value. Display a message if it is found or not found.

The script should loop:

Project #2

Display the the values in the tree in assending or decending order.

A flag on the command line determines which direction to display.