Algorithms and pseudocode Flashcards
what is the program development cycle
analysis - abstraction, decomposition, identification
design - decomposition, structure diagrams, flowcharts, pseudocode
coding - writning code
testing - testing code with test data
define decomposition
breaking down a complex problem into smaller, manageable parts which are easier to solve
what are the steps of decomposition
- identify main problem
- identify the componenet parts of inputs, processes, outputs and storage
- list the main sub-problems, sub-systems or sub-tasks
- break these down into smaller sub-problems and sub-tasks which can be completed
what is a structure diagram used for
to show the structure of a problem, its subsections and links to other subsections
what is abstraction
simplifing a porblem so it is easier to be deal with
what are flowcharts used for
to develop solutions to a problem
what is the problem with using flowcharts
they di not usually translate very easily into program code
why do programmers use pseudocode
because it is easier for someone to understand - they can focus on the process needed rather than the coding itself
what is the assingment operator for pseudocode
an arrow
<-
what is this <
less than
what is this >
greater than
what is this <>
not equal to
what are the data types
- integer
- real
- boolean
- char
- string
what is an integer
a whole number
what is a real
a number with a decimal point