Big Idea 3 Flashcards
Algorithm
set of steps to solve a problem (recipe). can be used over an over again
Pseudocode
used to map out a program’s structure before actually writing in the programming language
Flowchart symbols
Oval - start/end
Arrow - relationship between shapes
Parallelogram - input/output
Rectangle - result
Diamond - decision/conditional
Clarity
how easy program is to understand
Readability
help programers understand the program
How many algorithms can solve a problem
many algorithms can be used to solve a problem. different algorithms may have different efficiencies
Variable
placeholders for values a program needs to use. a good name is necessary. are data abstractions because we don’t need to knowhow the values are stored.
Value
Number
“String”
String
text fields donated with quotation marks. CANNOT be used in calculations
Concatenating Strings
putting strings together
Substring
a section of a string. each character given an index number if need to be references (starts at 1). Spaces HAVE an index value.
Integer
whole number
Fractional Numbers
number with a decimal point (even if .0)
Math Symbols
+ add
- minus
/ divide
* multiple
MOD # (remainder after dividing)
how to assign a value to a variable
= or <–
Boolean Values
True or False (equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to)