Algorithm Design and Problem Solving Flashcards
State what is meant by an algorithm
a sequence of steps that can be carried out to perform a task
State what is meant by Structured English
a subset of the English language that consists of command statements used to describe an algorithm
State what is meant by pseudocode
a way of using keywords and identifiers to describe an algorithm without following the syntax of a particular programming language
State what is meant by a flowchart
Shapes linked together to represent the sequential steps of an algorithm
How do computers solve problems?
Input -> Process -> Output
State what is meant by variables
A storage location for a data value that has an identifier
State the rules of a variable identifier
should not contain spaces, only letters, digits and _
They should reflect the variable’s use.
PlayerScore is a common convention and makes it easier to read
What is the pseudo code for assigning a value to a variable
INPUT Number
NumberofGuesses
What is the pseudo code for updating a value?
NumberofGuesses
What is the pseudocode for copying a value?
Value2
What is the pseudocode for swapping two values?
Temp