Chapter 7 - Algorithm Design And Problem Solving Flashcards
Program development cycle (4)
Analysis
Design
Coding
Testing
Analysis (2 ways of doing it)
Stage of the program development cycle, done through abstraction and decomposition.
Abstraction - keeps key elements and discards unnecessary details+information
Decomposition - breaks down a complex problem into smaller parts which can then be subdivided and easily solved
Design
2nd stage of programme development cycle where how a problem should be executed is planned and documented using flowcharts, pseudocode and structure charts
Coding and iterative testing
Part of the program development life cycle in which the program is coded and the code is tested, amended and repeated until the moldule performs as required
Testing
Stage of program development lifecycle in which the program is run many times with different sets of test data.
Computer system
Made up of systems that can be broken down into subsystems that only perform 1 action each
Top down design
Decomposition of a computer system into subsystems until each system performs a single avtion
Components of a computer system/results of decomposition (4)
Inputs
Outputs
Processes
Storage
Post condition
Repeat until
Pre conditioned loop
While
Types of validation (6)
Range checks
Length checks
Presence check
Format check
Check digit
Type check
Dry run
Manual process of working through an algorithm step by step
Types of testing (2)
Unit testing - test each part of the code individually
Integration testing - all code combined to form a program then program tested