Click to See Complete Forum and Search --> : [RESOLVED] need help with homework!


programmer123456
September 25th, 2009, 07:01 PM
I'm new to java.. and i need help with this hw, it will be greatly appreciated.

Question - Write an application that takes a whole number consisting of 5 digits (declared as a variable) and displays the digits separated from one another by three spaces each. For example, the the user types in the number 12345, the application should display: 1 2 3 4 5. Hint: You will need to use both division and the modulus (remainder) operators to "pick off" each digit


If someone could help me out it would be great. thanks.

dlorde
September 25th, 2009, 07:11 PM
Sure, post up the code you've got so far, and explain clearly which part is giving you trouble, or what you don't understand, and we'll try to help you fix it.

Learning is never done without errors and defeat...
V. Lenin

Deliverance
September 25th, 2009, 07:16 PM
Sure, post up the code you've got so far, and explain clearly which part is giving you trouble, or what you don't understand, and we'll try to help you fix it.

Learning is never done without errors and defeat...
V. Lenin

We need a dlorde bot that scans each new thread, and if there is no code tags found in the OP, it should auto-respond with the text quoted above.

dlorde
September 26th, 2009, 05:27 AM
We need a dlorde bot that scans each new thread, and if there is no code tags found in the OP, it should auto-respond with the text quoted above.
:wave: I can do it in my sleep :D

Never hesitate to ask a lesser person...
Confucius