Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: power of looping >.< in my project

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default power of looping >.< in my project

    use any type of loop that would find you easy in solving the given machine problem

    the input value is a non-negative number from 1 - 20,otherwise, an invalid message will be displayed prompting the user of invalid entry


    the output is the row and column size of the number being entered
    EXAMPLE

    SAMPLE INPUT
    Enter a number ( 1 - 20 ) - 5

    SAMPLE OUTPUT : (5x5) matrix

    1 @ @ @ 1
    @ 2 @ 2 @
    @ @ 3 @ @
    @ 4 @ 2 @
    5 @ @ @ 5

    guyz help me with this please i need this for my project
    looping , my instructor has no explanation about this >.<
    help me guyz im only 16 years old . and first time for java .


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: power of looping >.< in my project

    Look at the print out row by row. What goes on each row? What is the relationship between what goes on a row with the row number. Where on each row does the number go?

    If you were to print any one row given the row number, where would you position the numbers for that row. For row 2 where on the row do the '2's go?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member shadihrr's Avatar
    Join Date
    Jan 2010
    Location
    home
    Posts
    23
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: power of looping >.< in my project

    are you sure that the question is right? I think in sample output the 4th row should be like this: @ 4 @ 4 @

  4. #4
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: power of looping >.< in my project

    oops sorry @ 4 @ 4 @

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: power of looping >.< in my project

    Have you worked out what goes on a line/row? For example: what goes on the first line?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. looking for a program to manage windows power plans
    By lordrt in forum Java Theory & Questions
    Replies: 0
    Last Post: May 13th, 2012, 03:26 AM
  2. the java power
    By haygaurav in forum Java Theory & Questions
    Replies: 4
    Last Post: June 15th, 2011, 08:36 AM
  3. Is java a power full programming language? can java do this?
    By Jhovarie in forum Java Theory & Questions
    Replies: 5
    Last Post: March 2nd, 2011, 02:02 PM
  4. Programming a power table
    By Reynalto in forum Loops & Control Statements
    Replies: 3
    Last Post: November 16th, 2010, 08:51 PM
  5. [SOLVED] looping, for,while,do-while.
    By chronoz13 in forum Loops & Control Statements
    Replies: 4
    Last Post: August 6th, 2009, 01:32 PM