# Need Help!:( Java problem

• 02-01-2011, 11:20 PM
ra21
Need Help!:( Java problem
Hello,
I have to solve 3 java Problems, there actually simple but i'm stuck with it:(. Would be really grateful, if somebody could help me out.:)

1. Write a complete and syntactically correct Java class named FiveDigitNum
which receives as input on 5-digit number from the user, say 42338,
and separates the number into its individual digits and displays each digit
separated by 3 blank spaces, ie 4 2 3 3 8

2. Write a complete and syntactically correct Java program(class name Dollars)
which computes and outputs the conversion of an entered number of dollars
into currency denominations, as in 100s, 50s, 20s, 10s, 5s and 1s.

3. 1. Prompt the user for the coefficients of the quadratic equation,
and compute and output the roots R1 and R2.
Keep prompting the user to enter new coefficients until the user
enters 0 for the a coefficient, in which case pgm ends.
• 02-01-2011, 11:26 PM
mastal
What do you have so far? Post your code.
• 02-01-2011, 11:41 PM
Fubarable
Quote:

Originally Posted by ra21
Hello,
I have to solve 3 java Problems, there actually simple but i'm stuck with it:(. Would be really grateful, if somebody could help me out.:)

1. Write a complete and syntactically correct Java class named FiveDigitNum
which receives as input on 5-digit number from the user, say 42338,
and separates the number into its individual digits and displays each digit
separated by 3 blank spaces, ie 4 2 3 3 8

2. Write a complete and syntactically correct Java program(class name Dollars)
which computes and outputs the conversion of an entered number of dollars
into currency denominations, as in 100s, 50s, 20s, 10s, 5s and 1s.

3. 1. Prompt the user for the coefficients of the quadratic equation,
and compute and output the roots R1 and R2.
Keep prompting the user to enter new coefficients until the user
enters 0 for the a coefficient, in which case pgm ends.

Please do not simply dump a homework assignment in the forum without showing an ounce of work. Show us your effort and ask a specific question.