Process for program writing
The steps which is needed to write the program can be defined as-
- User Requirements
- Problem Analysis
- Input and Output
- Designing Algorithm
- Program Coding
- Testing the program
- Validating the program
User Requirements: The need of user is must because without user we can't do nothing. So user requirements are essential part of developing the code of the program.
Problem Analysis: The second steps for writing program are problem analysis. Problem analysis means how this problem solved.
Input and Output: The third steps for writing the program are input and output. It states that how many input and output is needed in solving the problem.
Designing Algorithm: For solving the problem "Algorithm" is implemented. An algorithm is a sequence of steps gives method of solving the problem. This "Algorithm" creates the logic of the program.
Program Code: The last step for solving the problem is program code. It is the much important part of the program. So program code is written according to the algorithm.
Testing the program: This means giving some known values to the variables and checking the result by comparing with manually calculated values. Test values are so selected that each part of a flowchart is tested and consequently the program is confirmed to be free from any logical errors.
Validating the Program: It is quite likely that the user of your program may enter values, which are not expected by the program. Such values should be rejected by the procedure drawn by you. This is known as validation of data.