Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates


Pseudocode Tutorial: The Basics


  • Please log in to reply
38 replies to this topic

#1 TcM


    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 23 August 2006 - 04:58 AM


Well a user here asked me to make a pseudocode Tutorial so to help some newbies, and well here it is! I made a very brief tutorial for you to understand!

What is Pseudocode?
Pseudocode is a short hand way of describing a computer program. Rather than use the specific syntax of a computer language, more general wording is used. Using pseudocode, it is easier for a non-programmer to understand the general workings of the program.

Why use it?
Well, This is usually made before a programmer starts making the actual program with Syntax, So as just to have the idea of the program. This should be written to the extend than every person, even without knowing any programming should still understand because it should be like reading some bullets points in simple and understandable language ( like English )


Ok, so as I am confident in VB 6.0 I will show you a piece of code in VB and then make it in pseudocode! The VB code will not be understood by everyone, but the pseudocode Yes! it SHOULD be understood!

VB Code:-

Dim Num1 As Integer
Dim Num2 As Integer
Num1 = Text1.Text
Num2 = Text2.Text
If Num1 > Num2 Then MsgBox "Num1 is Greater than Num2"
If Num1 < Num2 Then MsgBox "Num2 is Greater than Num1"
If Num1 = Num2 Then MsgBox "Num1 and Num2 are equal"


Make Num1 as the text in Text1
Make Num2 as the text in Text2
if Num1 is greater than Num2 then "Num1 is greater than Num2"
else if Num1 is smaller than Num2 then "Num2 is Greater then Num1"
else if Num1 is equal to Num2 then "Num1 and Num2 are equal"

As you can see the pseudocode is very close to the Actual VB Code thats because nowadays we are trying to make the programming languages as close as possible to our natural language! well as you can see at first there was the Machine Code that you had to program with Binary ( 1s and 0s ) then the Assembly was created and it had the Mnemonics like ADD and such, you see it had words that we could read then the programming languages were always updated and made more close to our natural langauge ( a language that we can speak ) And its said that in a while we will be able to program in pseudocode but for now its a little far, but by time we'll see!

Well I hope that you understood a little more what pseudocode is!!
If you have any questions/problems/feedback pls post here and I will sureley Help you!
So I'm waiting for your feedback
Ow and if you want me to make you some tutorials request what you want and I will see what I can do! I will be happy making some tuts here!

  • -1

#2 Guest_Shakmun_*

  • Guest

Posted 13 October 2006 - 09:05 AM

helpm me out with my project,I will be really grateful
  • 0

#3 Void


    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 403 posts

Posted 13 October 2006 - 11:28 AM

Is your project just Pseudocode?
  • 0

#4 TcM


    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 14 October 2006 - 09:56 AM

Yeah give me some details and I will try to help you!
  • 0

#5 wng


    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 21 February 2008 - 07:23 AM

hey, this tutorial is excellent help with my assignment, thnx
  • 0

#6 TcM


    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 06 June 2008 - 10:44 AM

Welcome. Did you pass the assignment?
  • 0

#7 jason007thomas


    CC Lurker

  • Just Joined
  • Pip
  • 7 posts

Posted 25 October 2008 - 04:40 PM

Whats up TcM I just joined this site and I need to find help with my pseudocode
Ironicly my next class next semester is VB but im just trying to be as good as i can be as far as program design and logic right now!!!

my class only meets one time a week so its hard to get my practice in
it seems like we focus more on the vocabulary then actualy designing the program itself.

if you can help i would really apreciate it

hit me up
thank you!!!
  • 0

#8 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 25 October 2008 - 07:01 PM

Wow! I never knew that there was code like that :eek: I still couldn't program in it, too confusing for me. I like the original :D
  • 0
I've returned...

#9 princecal


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 20 January 2009 - 04:07 PM

need help with pseudocode assignment
  • 0

#10 George


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 24 March 2009 - 07:59 PM

Hi buddy,

Would like to have more pseudo code example, would like to know that whether you have any in hands and willing to send it over to me as reference and study materials? I would like to have as much as i can get. :)

Warmest regards,

  • 0

#11 mmu-84


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 19 July 2009 - 10:17 PM

Hi bro..
That is a great explanation..
really I think I got the idea
Kindly can you give more tutorials on how to (construct routines by using the PPP)
how to design the routine?

Please help I don't have any idea on how to re-write pseudocode for a routine

  • 0

#12 charlote


    CC Regular

  • Member
  • PipPipPip
  • 37 posts

Posted 28 February 2010 - 09:10 PM

Great explanation. Can you help me with my assignment which I have been asked to redo?
I have problems with loop.
  • 0

Also tagged with one or more of these keywords: pseudocode

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download