Now you're ready to solve the complete rod stacking problem. Modify
your program to solve the entire rod stacking problem described in this
lesson (i.e., finding the positions of all eight rods in the stack).
You can do this simply by changing the main function of your program.
The revised main program will determine the position of each rod in turn by
calling the functions that you previously created. Note that your new
main function will not need to ask for any input. All of the data that your
program needs are contained in the illustration and can be built into the
program.
Your program should output a report that describes the X-Y center positions of
every rod in the stack, including the rods that touch the floor of the bin.
The output of each program will look something like this:
The center of rod 1 is at (3.00, 3.00).
The center of rod 2 is at (20.00, 4.00).
The center of rod 3 is at (38.00, 2.00).
...
The center of rod 8 is at (..., ...).