Results 1 to 7 of 7
Like Tree2Likes
  • 1 Post By DrMadolite
  • 1 Post By DarrylBurke

Thread: How to write a programming algorithm

  1. #1
    gnarkill10 is offline Member
    Join Date
    Aug 2012
    Location
    Tamworth, Australia
    Posts
    42
    Rep Power
    0

    Default How to write a programming algorithm

    Could someone please fill me in on the steps they take when writing an Algorithm for a computer program.

    I have a basic idea, and have seen heaps of examples on the net, and in my text books, but just want to know what other people do.

    Cheers,

    Ben

  2. #2
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: How to write a programming algorithm

    An algorithm is just a series of steps. Are you asking about how to outline an algorithm? If so, flow charts are useful.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  3. #3
    gnarkill10 is offline Member
    Join Date
    Aug 2012
    Location
    Tamworth, Australia
    Posts
    42
    Rep Power
    0

    Default Re: How to write a programming algorithm

    Flow charts, yeh ok. Thanks man

  4. #4
    gnarkill10 is offline Member
    Join Date
    Aug 2012
    Location
    Tamworth, Australia
    Posts
    42
    Rep Power
    0

    Default Re: How to write a programming algorithm

    How detailed would you go? Bit more then this (just an example)...
    Java Code:
    -Display message on screen: "What is your favourite number"
    -Prompt for user input from keyboard
    -Store input into variable number
    -Display message on screen: "Your favourite number is " 
    -Get number from memory display on screen
    -Display message:"sick one!"

  5. #5
    DrMadolite is offline Member
    Join Date
    Jul 2012
    Location
    Norway
    Posts
    29
    Rep Power
    0

    Default Re: How to write a programming algorithm

    gnarkill10 likes this.

  6. #6
    gnarkill10 is offline Member
    Join Date
    Aug 2012
    Location
    Tamworth, Australia
    Posts
    42
    Rep Power
    0

    Default Re: How to write a programming algorithm

    haha you're a dag

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: How to write a programming algorithm

    Not a Java question. Moving to Forum Lobby.

    db
    gnarkill10 likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 7
    Last Post: 11-30-2011, 06:58 PM
  2. Replies: 4
    Last Post: 07-18-2011, 12:36 AM
  3. A* algorithm
    By zjames in forum New To Java
    Replies: 6
    Last Post: 11-25-2010, 12:02 PM
  4. Algorithm help? :)
    By Mirix in forum New To Java
    Replies: 6
    Last Post: 05-24-2010, 02:08 AM
  5. DES algorithm (Read and Write bytes to file)
    By JoaoPe in forum Advanced Java
    Replies: 6
    Last Post: 07-29-2008, 03:46 PM

Tags for this Thread

Posting Permissions

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