Pseudocode: Difference between revisions

From Computer Science Wiki
No edit summary
No edit summary
Line 11: Line 11:
Pseudocode is a simple way of writing programming code in English. Pseudocode is not actual programming language. It uses short phrases to write code for programs before you actually create it in a specific language. Once you know what the program is about and how it will function, then you can use pseudocode to create statements to achieve the required results for your program.<ref>http://study.com/academy/lesson/pseudocode-definition-examples-quiz.html</ref>
Pseudocode is a simple way of writing programming code in English. Pseudocode is not actual programming language. It uses short phrases to write code for programs before you actually create it in a specific language. Once you know what the program is about and how it will function, then you can use pseudocode to create statements to achieve the required results for your program.<ref>http://study.com/academy/lesson/pseudocode-definition-examples-quiz.html</ref>


== Binary ==
This is one of the better videos I've seen on binary.
<html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/hacBFrgtQjQ" frameborder="0" allowfullscreen></iframe>
</html>
== Binary Translation table ==
I find it helpful to draw this table when I must convert binary to [[base 10]]. It also helps when looking at the video above.
{| style="width: 95%;" class="wikitable"
|-style="text-align:center;"
! '''128''' !!  '''64'''  !! '''32''' !! '''16''' !! '''8''' !! '''4''' !! '''2''' !! '''1'''
|-
|<br /> || || || || || || ||
|}
== How to add two binary numbers ==
Adding binary is straight forward. Line up the numbers as you would if you were adding base-10 numbers.
Remember this:
<code>
0 + 0 = 0
0 +  1 = 1
1 + 0  = 1
1 + 1 = 10, so write a 0 and carry the 1 to the next column.
</code>


== What you must know ==  
== What you must know ==  

Revision as of 12:47, 4 May 2016

Exclamation.png This is an important concept you should fully understand this.

This is a basic concept in computer science

Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. It uses the structural conventions of a normal programming language, but is intended for human reading rather than machine reading.[1]

Pseudocode is a simple way of writing programming code in English. Pseudocode is not actual programming language. It uses short phrases to write code for programs before you actually create it in a specific language. Once you know what the program is about and how it will function, then you can use pseudocode to create statements to achieve the required results for your program.[2]


What you must know[edit]

You must be able to correctly answer the following questions:

Why is this so important?[edit]

If we can represent numbers as 1 and 0, why not represent numbers as on and off? If we can represent letters as numbers (A = 65, B = 66) couldn't we also say A = 01000001 and B = 01000010?

Binary representation is the essence of how computers work.




References[edit]