A crystal maker has just purchased one the new box machines, the BCC-9000, to help with packaging their expensive vases, bowls, etc. for storage and shipping.
The BCC-9000 is a wonderful machine and technological masterpiece but it needs input, much like a CNC machine does. It can take a sheet of cardboard, cut it, fold it and make a lid to match but it needs dimensions to do so. The BCC-9000 gets its dimensions by scanning a sheet of paper and reading the line work, solid line indicates sheet size, dashed lines represent the fold lines.
Each piece of crystal has a item number and dimensions (Length, Width and Depth) associated with it. Your job, as the programmer, is to create the line work based on these dimensions. The dimensions and item number will be entered by the CAD Tech and then printed.
The line work will consist of an outline(rectangle) which indicates the total size of the sheet. It will also have fold lines(dashed) which represents the bottom and sides of the box. And it will have the item number in the center of the sheet.
You can write the whole program or a sub-routine for it.
Have fun!