Six steps in understanding a program
- Understand the program – first, before creating the program, we need to understand the program so that we can get the possible output that we need. Thinking its possible output will helps us to create the whole step and process of the program. Then, analyze the program of what will you do in your body so that you can sequence the things that you need to do.
- Plan the logic – there are two ways in planning its logic. One is by writing pseudo code and second is by making flowchart. Those tools will help us in better understanding and good way of making a program. Lets define first the two tools;
Pseudo code - s a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of some programming language, but typically omits details that are not essential for the understanding of the algorithm, such as subroutines, variable declarations and system-specific code. The programming language is augmented with natural language descriptions of the details, where convenient, or with compact mathematical notation. (source - wikipedia.com)
Flowchart - is a schematic representation of an algorithm or a process, or the step-by-step solution of a problem, using suitably annotated geometric figures connected by flow lines for the purpose of designing or documenting a process or program. (source - wikipedia.com)
- Code the program- it is important for us to code the program because in this process, debugging, trouble shooting the program and maintaining the source code of programming. It will also test the code of the program if it is accurate to the language that we are using.
- Translate the program into machine language – in this process the compiler will translate your code. The compiler the one who will do the task. The compiler will undergo a process through translating the program to a machine language.
- Test the program – in testing the program the compiler will sequentially check every line in your program. Then, it will tell if there is an error in your program. In this process, we will know if our program has met the output that we need.
- Put the program into production – lastly, in this process your program will be check. It will be put into production after checking it.
No comments:
Post a Comment