Results 1 to 5 of 5
  1. #1
    LiemNg is offline Member
    Join Date
    Feb 2016
    Posts
    2
    Rep Power
    0

    Default Help with NumberShape

    can someone help me how to write this...
    Help with NumberShape-2016-02-09_20-22-06.png

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: Help with NumberShape

    What have you tried yourself? This is not a homework dump you know ...

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  3. #3
    LiemNg is offline Member
    Join Date
    Feb 2016
    Posts
    2
    Rep Power
    0

    Default Re: Help with NumberShape

    I didn't ask any to do it for me... I just don't know where to get started this is like my second time writting java..

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Help with NumberShape

    Without knowing where you've got stuck we're not really in a position to help.
    What code have you got so far, and what output does it give?

    The most common trouble people have when new is they look at the problem as a whole and let out a small squeak.
    What you should do is look at the parts.
    In yours there is a prompt for the user. Have you managed to do that bit?
    Then the code needs to take the user input. Have you done that?

    Finally you have the output.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Help with NumberShape

    Quote Originally Posted by LiemNg View Post
    I didn't ask any to do it for me... I just don't know where to get started this is like my second time writting java..
    But you can at least identify based on the assignment that you will need to know how to output text and how to read a character from keyboard input, so that is something you can go figure out yourself how you would do that. I hope you have a textbook you can read and look up how to do these basic things.

    If you want to learn programming, you need the motivation to go read and search and figure it out. If you don't have the motivation and rather just make other people tell you what to do like you are doing here... sorry, that is going to backfire. Its really tough, we've all been there. And we've all done it because we gave ourselves the time and patience to figure it out. Now its your turn.

    Of course if you have specific troubles, such as "I was trying to figure out how to read something from the keyboard and I got this code but I just can't get it to work" - of course ask for help with that specific problem you've already invested in yourself.
    Last edited by gimbal2; 02-10-2016 at 11:19 AM.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Posting Permissions

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