Name _______________________

      
    

Lab 5

HYPERCUBE PROGRAM

Write an object-oriented program in C++ that will properly
simulate the routing behavior of an N-Dimensional Hypercube
where N can be easily changed from 3 to as many as 10 dimen-
sions. This can be handled by having #define statements that
reflect the number of dimensions as well as the number of
nodes. By changing just these two parameters, the same pro-
gram should work for the appropriate dimension. The program
should also use an event-driven approach as described above. The program should also reflect Object Oriented Programming (OOP) design. Although it is possible to generate the output of the simulation using a procedural approach without ever building objects such as the hypercube with tasks on the various nodes, and those nodes being aware of only their own direct links, make sure your design utilizes strong OOP design skills.