
Pseudocode
Presentation
•
Mathematics, Computers
•
6th - 8th Grade
•
Practice Problem
•
Easy
Atharv (KMS)
Used 12+ 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
12
Multiple Choice
-1
0
1
Φ
Pseudocode
:D
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
10 questions
Simple Interest
Presentation
•
7th - 8th Grade
11 questions
Appropriate Use of Technology
Presentation
•
6th - 8th Grade
8 questions
Rounding Numbers
Presentation
•
5th - 9th Grade
8 questions
Ecuația de gradul I cu o necunoscută
Presentation
•
7th Grade
10 questions
Unit Rate Intro
Presentation
•
7th Grade
10 questions
Add and Subtract Like Fractions
Presentation
•
7th Grade
9 questions
Citing Textual Evidence
Presentation
•
6th - 8th Grade
10 questions
Connecting Conflict and Inference
Presentation
•
6th - 8th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade