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 4 of 4

Thread: Hey guys, Im making a program and need some help laying out my psuedo code.

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hey guys, Im making a program and need some help laying out my psuedo code.

    The algorithm i need first finds the smallest element of theArray and exchanges it with the element indexed by 0, and then finds the second smallest element of theArray and exchanges it with the element indexed by 1. The algorithms continues in this matter for n − 1 times before it finishes. The algorithm finally takes theArray and n as inputs, and doesn’t return a value.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,610
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: Hey guys, Im making a program and need some help laying out my psuedo code.

    Did you have a question?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Hey guys, Im making a program and need some help laying out my psuedo code.

    I like to write out pseudocode before i program so my question is how would i implement this algorithm into pseudo code?

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,610
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: Hey guys, Im making a program and need some help laying out my psuedo code.

    We aren't going to do your homework for you.

    What have you tried? Where are you stuck?

    Break the problem down into small individual steps. Write it out in plain language (not pseudo code) first, then go from there.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 2
    Last Post: November 19th, 2012, 02:11 PM
  2. Hey guys!!
    By Toni8810 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: August 8th, 2012, 08:27 AM
  3. Hey guys
    By StarKannon in forum Member Introductions
    Replies: 2
    Last Post: February 2nd, 2011, 04:58 AM
  4. hey guys....
    By prince joseph in forum Member Introductions
    Replies: 2
    Last Post: March 28th, 2010, 12:15 AM
  5. Replies: 5
    Last Post: December 13th, 2009, 07:10 PM