In this course, we will concentrate on the first three steps; analysis of the problem, designing the program, and writing the program code.
3.2 Problem Solving
As mentioned in the earlier section, before you can write a good program, you must first analyse the problem that you want to solve, and then to design the algorithm of the program before you can write the program codes.
You have to understand the problem before you can attempt to solve it. To understand the problem, you need to analyze it. The purpose of analyzing the problem is for you to determine what is it that the program must to do. This is the first important step and you must be able to determine what is task the program need to perform, and you must specify this completely and precisely. One way that can help you get started is by determining the output that the program must produce. In order to get an output, the program requires input. You must determine what that input is , and how does the program process the input to produce the output. It is important for you to remember that a program consist of the following: