intro to problem solving - pseudocode Flashcards
components of problem solving
input
process
output
define algorithm
a finite step-by-step of unambiguous rules ( instruction ) to solve a problem
algorithm uses what language
human native language
algorithm can be implemented using
pseudocode
flowchart
define pseudocode
really structured English that has been formalised and abbreviated to look like the high-level computer language
structure of a pseudocode
( step 1 - 6 )
- start
- declare variables
- prompt and get
- calculate
- display
- end
keywords for input
prompt and get
read
prompt and get
indicate that input will be receive from keyboard
read
indicate that input will be retrieve from record in file
keywords for output
display, output or put
print
write
display, output or put
used when we want the output to be displayed on computer screen
enables output to be sent to a printer
write
enables output to be written to a file
arithmetic symbols in pseudocode
+ - addition
- - subtraction
* - multiplication
/ - division
() - parentheses
define desk checking
process of tracing through the pseudocode with some test data