flow charts Flashcards
what is an algorithm?
(a program)- a sequence of instructions
what is a flowchart?
a diagram that uses special symbols to describe the steps and order that a program must run
name 3 reasons why we use flowchart.
-organising things
-break a problem down into parts
-ensure instructions are in the right order
what shape is a terminator symbol, and what is it used for?
an oval, and it is used at the start and end of a flowchart
what shape is a process symbol, and what is it used for?
rectangle, to show a single step that is part of a bigger problem
what shape is a decision symbol and what is it used for?
diamond, and it is used when condition is checked to decide what happens next
what shape is an input/output symbol, and what is it used for?
parallelogram, and to show u that a device must be turned on and off.
what shape is a delay symbol, and what is it used for?
half semicircle and it allows you to pause or delay the flowchart
is a function and a sub- routine the same?
YES
what is a subroutine?
blocks of code created to preform a particular task
name 2 benefits of a sub routine.
-makes programs shorter
-can be called on a number of times in the program
what is a sequence?
instructions followed one after the other, step by step
what is a selection?
a condition is used to decide whether a section of code should be executed.
what is iteration?
the process of repeating sections in a program to achieve a goal or target.
what is a sensor?
an input device used to measure some physical quantity in its environment.
name 2 scenarios when computer control is better.
- tasks are repetitive
- speed is essential
name 2 scenarios when human control is better.
- an element of skill is involved
- unexpected things my happen
name 2 advantages of computer control.
- can work 24hrs a day
- don’t need to be payed
name 2 disadvantages of computer control.
- software costs a lot
- computer may malfunction
what are the lines coming out of a flow chart called?
flowlines