This program was written on the HND under what the college calls 'Work Shop' conditions. Basically this means a team of students are set a task, and given a week in which to work together in order to come up with a solution. This can be a real pain if someone in the team doesn't pull their weight! GigaHex's team consisted of himself, Wid, and Gromit.  

The task was to produce a graphical version of the Water Distribution System as described in the book Object-Oriented Programming In Turbo C++ (Robert Lafore, 1991, p.576). First we had to code the generic text version, add a sink to it, understand the code, test it and document it, before doing the same for a graphical version and demonstrating them both to the end user.  

Our team was the only one to complete the task fully within the allotted time! Object Oriented C++ isn't easy to understand as it is, but when it's mixed with pointers it becomes even harder. The program included things like operator overloading, friends, and pointers to instances of objects.  

For any student doing the same work shop: don't follow the diagram on p.577 to literally! There are several pipes, such a those between valves and tanks, and tank 2 to sink 2, that do not exist! It doesn't matter if pipes are bending all over the place either, as long as they connect the correct things. Finally drawing a T pipe isn't really necessary as putting 2 pipes together makes a T shape automatically. Just make sure there is one logically in place.  
  

Download WATER SYSTEM SIM v1.0
 
 

Giga's House

For Sale

GigaHex Files

Rocket Mad

Cool Links

E-Mail Me!