what is a computer program
what does this produce
a series of statements executed one after another
writing statements produces constructs
constructs can be one type of what three things
either an iteration, selection, or sequence
what is a sequence
executing instructions one after the other
what is selection also known as branching (i think but check this on google)
following different routes based on the outcome of a decision
by using :
- if
- or if… else
what is nesting
putting one statement inside another, through iteration or selection
what is iteration
repeating section of code by using :
- for loops- count controlled loops
- or while loops - condition controlled loops, when the required number of iterations isn’t known
- or a do until loop, a variation of a while loop, when code executes at least once before the condition is checked
what are the three parts of every computer program
Input – process – output