Search Header Logo
Pseudocode

Pseudocode

Assessment

Presentation

Mathematics, Computers

6th - 8th Grade

Practice Problem

Easy

Created by

Atharv (KMS)

Used 11+ times

FREE Resource

10 Slides • 2 Questions

1

​Pseudocode

:D

2

Open Ended

What is pseudocode?

3

​Pseudocode

Pseudocode is fake code. It makes sense, but you can't run it through a computer.

:D

4

​Basic Operators

Pseudocode

​Addition: 1 + 2 = 3

Subtraction: 4 - 3 = 1

Multiplication: 1 * 2 = 2

Division: 1 / 2 = 0.5

Modulus: 9 % 5​ = 4

Exponentiation: 2 ^ 3 = 8​

Arithmetic I guess

Real Code​ (Python)

Addition: 1 + 2 = 3

Subtraction: 4 - 3 = 1

Multiplication: 1 * 2 = 2

Division: 1 / 2 = 0.5

Modulus: 9 % 5​ = 4

Exponentiation: 2 ^ 3 = 8​

5

​Decision Operators

Pseudocode

​< (2 < 3 is True)

> (5 > 2 is True)

== (1 == 2 is False)

<= (1 <= 1 is True)

>= (1 >= 1 is True)

!=  (1 != 2 is True)

Deciding

Real Code​ (Python)

< (2 < 3 is True)

> (5 > 2 is True)

== (1 == 2 is False)

<= (1 <= 1 is True)

>= (1 >= 1 is True)

!=  (1 != 2 is True)

6

​Boolean Operators

Pseudocode

​! (!True = False)

&& (True && False = False)

|| (True && False = True)​

The left side in C++​ and Java

The right side works in Python​

You may see both sides in pseudocode though :D

Boolean fun!

Real Code​ (Python)

not (not True = False)

and (True and False = False)

or (True or False = True)​

7

​Precedence

These operators follow an order (like PEMDAS, with more operators)

!, ^ or ↑, *, /, %, +, -, >, <, >=, <=, !=, ==, &&, and ||

Multiplication and division can occur in any order (the same goes for addition and subtraction)​

Precendence

8

Check the weather

Otherwise

Bring a hat

If it is sunny

​If/Else

The idea behind decision making

9

​If/Else

​if the weather is sunny then

bring a hat

else

bring nothing

end if​

If/Else in pseudocode

10

if (condition){

do stuff​

}​ else {

do stuff​

}

C++/Java

if condition:

do stuff

else:

do stuff​

Python

​If/Else

How If/Else looks in code

11

media

12

Multiple Choice

Question image
1

-1

2

0

3

1

4

Φ\Phi  

​Pseudocode

:D

Show answer

Auto Play

Slide 1 / 12

SLIDE