I'm totally lost on a java assignment. I'm supposed to create a rocketship ASCII art like below /**\ //**\\ ///**\\\ ////**\\\\ /////**\\\\\ +=*=*=*=*=*=*+ |../\..../\..| |./\/\../\/\.| |/\/\/\/\/\/\| |\/\/\/\/\/\/| |.\/\/..\/\/.| |..\/....\/..| +=*=*=*=*=*=*+ |\/\/\/\/\/\/| |.\/\/..\/\/.| |..\/....\/..| |../\..../\..| |./\/\../\/\.| |/\/\/\/\/\/\| +=*=*=*=*=*=*+ /**\ //**\\ ///**\\\ ////**\\\\ /////**\\\\\
Sorry, I couldn't get the format to stay the same, but that's the general idea.
OK.... so what about it is causing you problems? Several of the characters will need to be escaped or they will not print. Still, it is just a bunch of println statements, unless there is something I am missing.
The main problem is that you have to use for loops and nested loops to do this. Also it asks for user input so it can become any size.
Aah. OK. Yes, that would make a difference.
Join our real-time social learning platform and learn together with your friends!