This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Since the console has space for exactly 80 characters, use that knowledge to rewrite assignment 1 so that no matter what name is used for the argument, that name will print completely each time, and if it does not fit entirely, will print on the the next line instead of being split into 2 halves.
(Hint: use your math skills)
wait is my start up the wrong way to do it?
Joined: Mar 15, 2001
Gary, sometimes the solution to a relatively simple problem remains elusive even after one gets a few good hints. I'm not sure exactly what Kamabotti has tried, but from my own experience with this one, the fact that the console was 80 characters wide was news to me. (I have no formal computer background) Using this knowledge, along with basic math skills, I was eventually able to hash out a solution. It took me a few tries, and really made me aware that I had to learn to approach these programming assignments from a direction I was not accustomed to taking!
All hints are of value, as long as they don't just give the answer away completely. Learning to think a little about the approach to a problem is good, and if you can't come up with a good approach, then just jump in and start writing something. The things that don't work may teach you something as well!