1/13
Unit 5: Programming in AP Pseudocode | Created on October 26th
sequencing
one of the 3 basic logic structures in any computer language where all instructions are performed in order and executed one at a time (top to bottom)
selection
one of the 3 basic logic structures in any computer language that uses a boolean condition to determine or select whether to not to run a certain block of statements
ex: if, else statements
iteration
one of the 3 basic logic structures in any computer language where a block of code repeats to achieve or get closer to a desired goal
numbers
made up of digits 0-9
can be decimals or whole #’s
can be + or -
no quotes (“_“)
strings
made up of any character
a string of characters tgt make up words or sentences
the string of characters are inside double quotes
booleans
have 2 options: true or false
no quotes
creating a number
x ← 10
myMoney ← 3.5
value ← -6.78
creating a string
word ← “Hello”
sentence ← “This is fun!”
creating a boolean
flag ← true
otherValue ← false
variable(s)
a way for the computer to store and use data in the program but can only hold one value
standard operators (in programming languages)
addition, subtraction, multiplication, division
new operators
modulus (mod) and logical
the + sign is the only operator that can be used with ___
strings (+ sign)
concatenation
when the + sign comes between 2 stings (or a sting and #) it will push them tgt to for a longer string