Understand the problem at hand.
Identify what are the inputs and outputs required.
Use a flowchart or algorithmic approach to define functionality.
Test the functionality by using test data.
Writing of C code :
Write the main program and call the function to achieve desired results.
Write C code for a function declared in the main program.
Debug and remove errors
Syntax errors. These errors are easy to remove. Compiler pinpoints syntactical errors.
Logical errors. The compiler can not catch these errors. Only extensive testing can resolve these errors.
Run time errors. The examples are linking errors or errors that can occur at the run time of the program.
Testing and Validation. Design the test data, called test cases that would test the correct functioning of the algorithm under
Normal conditions
Best case considerations
Worst case considerations
Documentation to keep track of development and changes incorporated in the program so that program maintenance becomes easier later.
top of page
Search
Recent Posts
See AllOne-dimensional arrays are data structures that contain data types of the same type. In the form of a group of related memories...
60
Introduction Examples of algorithms in everyday life : Example 1 : To finish eating a plate of rice (initial conditions) Mouthfuls of a...
60
Post: Blog2_Post
bottom of page
Comments