TEST 1 topics and review Flashcards
print() meaning
Prints line in brackets to screen
println() meaning
prints line in brackets to screen and then jumps a line to continue.
what do variables do?
Storing data in program
5 data types
Char - characters
float - decimals
int - integers (whole numbers)
string - words
boolean - true or false
what are declaration statements? What do they do?
declaration statements help to declare a variable. It creates a variable.
two things need to be identified in a declaration statement
- Data type (whether its a float, int, char, etc)
- Variable identifier (name of variable)
5 basic math operators
+ addition
- subtraction
* multiplication
/ division
% remainder division
programming syntax (6)
1) all lines must end with semicolon;
2) procedures defined using void name (){…}
3) all programs need a setup procedure
4) all brackets need to be paired
5) all quotation marks need to be paired
6) curly braces define blocks of code.