# Thread: Need Help!:( Java problem

1. Member
Join Date
Feb 2011
Posts
1
Rep Power
0

## 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.

2. Member
Join Date
Feb 2011
Posts
6
Rep Power
0
What do you have so far? Post your code.

3. 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.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•