Results 1 to 3 of 3
  1. #1
    ra21 is offline Member
    Join Date
    Feb 2011
    Posts
    1
    Rep Power
    0

    Unhappy 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. #2
    mastal is offline Member
    Join Date
    Jan 2011
    Posts
    6
    Rep Power
    0

    Default

    What do you have so far? Post your code.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by ra21 View Post
    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.

Similar Threads

  1. Problem Display Jmenubar Java Se6 u23 versus Java SE6 u22
    By Ravanelly in forum Advanced Java
    Replies: 0
    Last Post: 01-07-2011, 09:36 AM
  2. Having a problem with Java...
    By sek in forum New To Java
    Replies: 17
    Last Post: 05-29-2010, 04:28 PM
  3. problem with java --> sql
    By bikkerss in forum New To Java
    Replies: 8
    Last Post: 04-14-2010, 01:03 PM
  4. Need help with a Java problem.
    By firestarter in forum New To Java
    Replies: 2
    Last Post: 10-04-2009, 12:24 AM
  5. java problem
    By Mj Shine in forum New To Java
    Replies: 5
    Last Post: 08-15-2009, 05:09 AM

Posting Permissions

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