For every problem, we have two of the following strategies.
Top down approach
Bottom up approach
Top down approach:-In a top approach the problem solver stays always on the top this is why , in this approach the solver can have a comprehensive over every part of the problem.
Bottm up approach:-In this approach the solver stays always on bottom of the problem usually these solver focus only on their own work and of others.
Top down V/sBottom up
Although every problem is solved in bottom up approach but some problems that are relatively larger are solved in top down manner as well.
Presentation of a solution to a program
Algorithm
Flow-Chart
Algorithm
Algorithm is nothing but a step by step manuals of what to do and how to do. Mostly algorithm are written in structured English but depending on locality it can written in any standarized language.
Example:-Write an algorithm to calculate simple interest solution. Step 1-Find the principle amount rate of interest and time period. Step 2-multiply out there inputs and find the product. Step 3-Divide the product by 100 and find the output. Step 4-The final outputs to be displayed.
Flow chart
Flow chart is a diagrametic representation of how a problem is solve for this, flow charts use different notations. Since every problem can be categerised in to any one of the three types, Flow charts are also designed in these three ways-
Sequential flow chart
Decisional flow chart
Looped flow chart
Sequential Flow chart
Sequential flow chart are used for these problem where there its a straight sequence. Example:-Flow chart to compute the simple interest.
Decisional Flow chart
This kind of flow chart are used for those problem where wee need to emplement and decision. Example:-Flow chart to declear a numbers as even or odd.
3-Looped flow chart
These flow chart are designed for a problem where a simple operation is being performed multiple times. Example:-Flow chart to compute table of a number up to 10.
Sequential Flow chart
Decisional Flow chart
Looped Flow chart
Notations of Flow chart
Following are the notations that are used widely in flow chart.