Programming basics are very easy to understand and implement, all you need is to remember some key concept/points.
Following are the points to be remembered for better programming:-
1. Understand the given problem carefully.
2. Think of all the alternate feasible way to solve the problem.
3. Write all the solution in the form of algorithm.
4. Draw Flowcharts for all the algorithm.
5. Analyze all the feasible solutions by checking the number of steps and algorithmic complexity.
6. choose the best alternative which involves less number of steps and efficient in terms of algorithmic complexity.
7. Start coding the algorithm. While coding following points should be kept in mind :-
9. Run the program and check the output for all the possible input values. This is known as testing.
10.You are done with your program and not just a program but a better program.
Following are the points to be remembered for better programming:-
1. Understand the given problem carefully.
2. Think of all the alternate feasible way to solve the problem.
3. Write all the solution in the form of algorithm.
4. Draw Flowcharts for all the algorithm.
5. Analyze all the feasible solutions by checking the number of steps and algorithmic complexity.
6. choose the best alternative which involves less number of steps and efficient in terms of algorithmic complexity.
7. Start coding the algorithm. While coding following points should be kept in mind :-
- Always start coding with comments. On the top give details about the program in comments and provide necessary information at different places with the help of comments.
- Choose variables and functions such that they are efficient in terms of memory and cpu utilization.
- Make sure of proper indentation. Indentation gives clear idea about the flow of control in the program and makes the program easy to understand.
9. Run the program and check the output for all the possible input values. This is known as testing.
10.You are done with your program and not just a program but a better program.
No comments:
Post a Comment