2.1 Algorithms Flashcards
what symbol is used in a flowchart for INPUT/OUTPUT
a parallelogram (slanted rectangle with the left most point being the bottom left one)
what symbol is used in flowcharts for START/FINISH
( )
——-
elongated oval
what symbol is used in flowcharts for a PROCESS
rectangle
(eg define or 2 + 2)
what symbol is used in flowcharts for DECISION
ELONGATED DIAMOND
what symbol is used in flowcharts for a SUBPROGRAM
a rectangle with two vertical lines down each side
what arithmetic operator is MOD and what does it do
modulus
The remainder that is left over when a number is divided by another.
what does % do in python
modulus
The remainder that is left over when a number is divided by another.
what arithmetic operator is DIV and what does it do
integer division
Used to find the quotient (integer number before the decimal point) after division
what does // do in python
integer division
Used to find the quotient (integer number before the decimal point) after division
what would be the inputs of
write a program to calculate the volume of a fish tank based on its dimensions and report the result to the user
Length : Real/Float
Height : Real/Float
Depth : Real/Float
what would be the processes of
write a program to calculate the volume of a fish tank based on its dimensions and report the result to the user
Length x height x depth
what would be the outputs of
write a program to calculate the volume of a fish tank based on its dimensions and report the result to the user
volume : real/float
what is abstraction
the process of removing unnecessary details and including only the relevant details
what is decomposition
breaking down a large problem into smaller, more manageable chunks
what is algorithmic thinking
a way of getting to a solution through the clear definition of the steps needed