Thread: pseudocode help

  1. #1
    Registered User
    Join Date
    Sep 2011

    pseudocode help

    Hi I am new to programming I have implemented a problem in scratch but i need to write this in pseudocode how do i do that !
    Scratch | Project | count

  2. #2
    Registered User
    Join Date
    Nov 2010
    Long Beach, CA
    Pseudo code is just like real code, but you stop worrying about exact syntax, punctuation, etc. It helps you lay out the structure of your program before you start actually coding it. It's often a step to help the transition between "solve it by hand on paper" and "write the actual code". Here's some sample pseudo code that totals all the numbers a user enters that are greater than zero
    sum = 0
        print "Enter a number"
        read num
        if num > 0
        sum += num
    while num > 0
    print "The sum of your numbers is " sum
    EDIT: Take a stab at writing the pseudo code for your assignment and we'll help you if you get stuck.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Yeah, unless you have to follow some standards about how to write it, pseudo code can be anything as long as they represent actual steps you would take in a real programming language.
    Devoted my life to programming...

  4. #4
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Pseudocode is as it stated: "Fake" code. You can make it sound Shakespeare if you want. The point is to make it clear to people.

    I shall't name thy integer Ray, thus borne in sight of 15 angels smiling upon thy presense.
    My second child, CHARacter Ron, shall wear thy ring with the name 's' in thy glory of the kingdom!.
    If Ray be thy gloriously over 16, I shall gladly rip Ron's ring from thy digits and let him wither away with 't'.
    int Ray = 15;
    char Ron = 's';
    if (Ray > 16)
      Ron = 't';

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pseudocode for functions
    By bos1234 in forum C++ Programming
    Replies: 3
    Last Post: 04-17-2011, 04:15 AM
  2. Pseudocode ?
    By sarajko in forum C Programming
    Replies: 1
    Last Post: 11-19-2010, 06:40 AM
  3. pseudocode
    By samsung in forum C Programming
    Replies: 8
    Last Post: 10-28-2007, 12:46 PM
  4. URGENT Pseudocode help!!!
    By mcgeady in forum C Programming
    Replies: 10
    Last Post: 11-17-2004, 09:03 PM
  5. help with pseudocode?
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 08-11-2002, 06:33 PM

Tags for this Thread