Steps of Problem Solving
Steps of Problem Solving
Problem Definition
A clearly defined problem is already half the solution. Computer programming
requires us to define the problem first before we even try to create a solution.
2. Problem Analysis:
Analyzing the problem require us to identify the following:
Input(s) to the problem, their form and the input media to be
used
Output(s) expected from the problem, their form and the
output media to be used
Special constraints or conditions (if any)
Any formulas or equations to be used
4. Coding: Coding is the real job of programmer. The algorithm to solve a problem
which is described by pseudo-code or flow chart is converted into actual
programming language code. The code written by programmer by using any
programming language like C is called the source code or source program.
6. Debugging and Testing: A written program may have errors, some errors can be
detected by the language compilers and some errors can not be identified by the
compiler and occured during the program run. Common types of errors are
Syntax Errors: Identified by compiler at the program
compilation time.
Logical Errors: Not identified by the compiler at compile time
and identified at the execution time. e.g. misuse of operators
So testing is the process of checking the program for its correct functionality by
executing the program with some input data set and observing the output of the
program.