LESSON 2 Flashcards
- Perform syntactic analysis on the description
Decomposition
A graphical way of depicting a problem in terms of its inputs, outputs, and processes
FLOWCHARTING
- In flowchart shape it is the start/end of a program
Rounded Rectangle
- In flowchart shape it is the program input and output
Parallelogram
- In flowchart shape it is the processing
Rectangle
Writing down all the major steps you will use in the program as depicted in your flowchart
PSEUDOCODE
Enumerate the Elements of Pseudocode Design:
Get - get info from the user
Display - display info for the user
Computer - perform arithmetic operation +, -, *, /, =, ( ) - Standard arithmetic operators
Store - store a piece of info for later use
In flowchart shape it is used for decisions. The “question” being asked goes inside the diamond. An arrow for each “answer” protrudes from the diamond.
Diamond
One or more lines of code terminated by a semicolon
JAVA STATEMENTS
- One or more statements bounded by an opening and closing curly braces that groups the statements as one unit.
- Can be nested indefinitely
JAVA BLOCKS
Tokens that represent names of variables, methods, classes, etc
JAVA IDENTIFIERS
- Predefined identifiers reserved by Java for a specific purpose
- Cannot be used as names for variables, classes, methods, etc.
JAVA KEYWORDS
- Not keywords, but also cannot be used as names
- true, false, null
RESERVED WORDS
- Describes how its data elements (variables) are associated with storage in memory and how they are related to one another
- Indicates the type of value that the variable can hold
DATA TYPES
- An item of data used to store state of objects
- Has a data type and a name
- Must follow rules for identifiers
VARIABLE
- store data in the actual memory location of where the variable is.
PRIMITIVE VARIABLES
- variables that stores the address in the memory location
- It points to another memory location of where the actual data is
REFERENCE VARIABLES