Frameworks 001 Flashcards
What is pseudocode?
An informal way to write code for other programmers.
The Syntax for pseudocode is:
BEGIN
END
RECEIVE
SEND
SET
TO
IF
ELSE
REPEAT
UNTIL
What does BEGIN and END do?
It is as simple as it can be one starts the code one ends it.
What does RECIEVE and FROM do?
RECIEVE is basically an input and FROM is to specify where the input is coming from.
What does SEND do?
SEND is basically an output.
What does SET and TO do?
SET is making a variable and TO is to give the variable a value.
What does END IF do?
END IF is used to close out of a IF statement.
What does REPEAT and UNTIL do?
REPEAT is just to set a loop and UNTIL is to set how it will end from a condition.
What do arrows do?
They show the flow of the chart (Which way things go).
What does a terminator do?
Terminators (Ovals) are used to show the start and end of a program.
What does input and output do?
Inputs and Outputs (Parallelograms (You know those squished squares?)) are used for well inputting data and outputting data.
What does a decision do?
Decisions (Diamonds) are like an if statement.
What does a process do?
Processes (Rectangles) are used to show actions taken e.g. x = x + 1.
What does a sub-program do?
Sub-programs (Rectangles but with splits on the side) re used to show a function. It makes a small program not directly attached to the main program.