1/44
Pseudocode Explanation: Assignment operator
Pseudocode Notation: <- (full arrow, not ASCII)
Pseudocode Explanation: Arithmetic operators
Pseudocode Notation: + - / * ^ %
Pseudocode Explanation: Relational operators
Pseudocode Notation: == < > โค โฅ โ
Pseudocode Explanation: Logical operators
Pseudocode Notation: and, or, not
Pseudocode Explanation: String concatenation operator
Pseudocode Notation: +
Pseudocode Explanation: Boolean values
Pseudocode Notation: true false
Pseudocode Explanation: Null
Pseudocode Notation: null
Pseudocode Explanation: Comments
Pseudocode Notation: // for single line, /* this is a C-style comment */
Pseudocode Explanation: Pre- and post- increment
Pseudocode Notation: ++i, i++
Pseudocode Explanation: Print (used to describe if a line feed or blank is printed between arguments, where necessary)
Pseudocode Notation: print arg, print ( arg ), print (arg1, arg2, โฆ)
the % (modulus or 'mod') results in
the remainder as an answer
the relational operators result in
true or false Boolean result
using the 'and' operator
evaluates both conditions on either side of it and if they are both true returns true, otherwise false
using the 'not' operator
evaluates both conditions on either side of it and if they are either are true returns true, otherwise false
using the 'or' operator
single line operator that reverses 'true' and 'false' Boolean
using the '+' as operator
joins strings of text
data types
Boolean, char, double, float, int, int [], int [] [], int array, short, string
the three basic data types in all coding languages are
numeric, text-based, Boolean
char means
single character in ASCII, Unicode, or other table
string means
collection of characters usually up to 256 (why excel cuts off at 255)
"" is interpreted as an
empty string
int values range from
-2bn to +2bn
short values range from
-32768 to 32768
floating point values are also known as
decimal values
double, and float variables store this type of number
decimal values (double can be more precise)
an array stores
sets of a single data type
multidimensional arrays are often called
grids (int [] [])
a grid array
stacks like rows in excel/sheets
if statements are only executed if
TRUE
else statements are only executed
the condition above them returns false
the four basic loop structures are
for, while, do, repeat until
predefined blocks of code are known as
procedures, functions, methods
procedures
perform action without printing output
functions
perform action on given parameter
methods
act as both procedures (void) or functions (return)
parameters
the variables input to a function
classes
declare variables and procedures as a group
common class definition terms include (4)
extends, new, public, private
class term: extends
inherits from another class
class term: new
instantiates a new version (think doc1, doc2)
class term: public
allows the class to be used by other classes
class term: private
does not allow class to be used by other classes
a pre test loop is determined by
the block of statements is executed after (below) the condition
a post test loop is determined by
the block of statements is executed before (above) the condition
examples of int data types
int, short, char (int calls on ASCII or Unicode);