Chapter 7 Algorithms, Psuedocode, etc Flashcards
Stages of the program development life cycle
Analysis
Design
Coding
Testing
What is Analysis (PDLC)
Analysis is a process of investigation, which leads to finding out the purpose and specifications of the program
What is Design (PDLC)
Shows how the program should be developed using the program specifications from analysis
What is Coding (PDLC)
Writing the program(s) itself and iterative testing
What is Testing (PDLC)
testing program code with the use of test data
What is abstraction - analysis
Key elements for a solution are kept and unnecessary info is discarded.
What is decomposition - analysis
A complex problem is broken down into smaller parts that can be solved easily.
Methods used for design
Structure diagram
Flowcharts
Pseudocode
What is a top-down design
aka
Constant breaking down of a computer system into a set of smaller sub-systems until each sub-system only performs 1 operation.
aka stepwise refinement
Components of a computer system (decomposition)
Inputs
Processes
Outputs
Storage
What is input - decomposition
Data used by the system that needs to be entered while the system is active
What is processes- decomposition
Tasks that need to be performed by a program using the input data and prev. stored data.
What is output - decomposition
Information that needs to be displayed or printed for the users.
What is storage - decomposition
Data that needs to be stored in files on an appropriate media for use in the future.
What is linear search
An algorithm that inspects each item in a list in turn to see if the item matches the value searched for
What is bubble sort
Makes multiple passes through a list comparing each element with the next element and swapping them, until no more passes/swaps can occur.
What is validation
Automated checks carried out to ensure that data is reasonable before it is accepted.
Types of validation
Range checks
Length checks
Type checks
Presence checks
Format checks
check digits