Outline the steps in problem-solving
Definition of the problem;
Recommend and evaluate solutions;
Determination of the most competent solution;
Build up and represent
algorithm;
Test and confirm the solution.
1. Define the problem
It is vital to give a clear and brief problem statement. The problem definition should evidently indicate the desired input and output. Give the data and constants necessary to solve the problem. You should have full understanding of the background of the problem you intend to solve. Having a goal in mind is necessary.
2. Formulate a mathematical model.
One can determine a competent solution by a mathematical model. Most scientific problems can be modeled mathematically. An existing model can be chosen or a new one created if no average mathematical model exists.
3. Develop an algorithm
The following step is to create and portray a specific plan for the computer to execute. This plan, expressed as a chain of operations, is called an algorithm. An algorithm may be represented in a flowchart or pseudo code (shorthand notation of English sentences). It is significant to check the algorithm with an easy set of data values. This will assist in shaping the validity of the algorithm.
4. Create the code for the problem.
The created algorithm cannot be understood by the computer. It must be written in a programming language. A compiler will change the program code into machine code which the computer can recognize and operate on.
5. Test your program.
Testing the program must deal with both syntax and logic errors. If the program compiles appropriately, you need to use an easy set of test values to confirm that the result is what was intended. If the results appear suitable, test the program with a selection of real data.