What I think you need it this:
- Provide a constant like defaultAmmoutOfCharactersOnLine;
- Read next line.
- Calculate ammountOfCharacters in line (rocket/figure)
- defaultAmmoutOfCharactersOnLine - ammountOfCharacters (substraction)
-- You now have the ammount of dots you need to display, dotCharsNeeded
-- Devide dotCharsNeeded by 2.
-- Before printing out line, print dotsCharsNeeded ammount of dots
-- Print out line (of rocket/figure).
-- Print out other half of dots, dotsCharsNeeded.
So your first line:
This line has 4 characters (ammountOfCharacters = 4). The max is the imaginary value of 12 (defaultAmmountOfCharacters =12)
Substract 4 from 12. (dotCharsNeeded = 8). Devide this value by 2 (=4), print out 4 dots before /**\ and 4 dots afterwards.
..../**\....
I'm having trouble with the height thing though. I beleive it's unessecary since you're just gonna print out per line anyway.