To write the correct and effective program be much first
Answers
Have the knowledge of programming codes
Have the knowledge of on which note pad you are typing and through what you are browsing you programs
Program is a set of instructions in a logical way to solve a problem.
For writing correct and effective program one should follow the following steps:
1. Defining the problem: Defining the problem means identifying what the problem is and what you want to obtain.
2. Planning the solution: The planning to solve a problem is to draw a flowchart or to write pseudocode. Pseudocode is a pictorial representation of a problem in a step-by-step manner.
3. Coding the program: The next step is to convert your pseudocode or flowchart into a programming language. The programming language may be BASIC, COBOL, Pascal, FORTRAN, C, etc.
4. Testing the program: After the code has been written the next step is to test the program. Testing undergoes three phases.
a. Desk-checking: In desk-checking one can mentally check the logic of the program to ensure that the code is error free and workable.
b. Translating: It is a program that checks the syntax of the programming language used and give all the syntax errors. After that the code is translated into the language that computer understands.
c. Debugging: Debugging can detect, locate and correct bugs by running the program.