Algorithm And Flowchart For Simple Interest
Formula to calculate simple interest i based on given p r and n is as under.
Algorithm and flowchart for simple interest. The main purpose of a flowchart is to analyze different processes. Several standard graphics are applied in a flowchart. Algorithms and flowcharts are two different ways of presenting the process of solving a problem. Print simple interest step 5.
Algorithm and flowchart 1 c program to find the simple. This preview shows page 1 9 out of 30 pages. C program to find the simple interest algorithm step 1. Read principal amount rate and time step 3.
We can easily understand the whole program by this algorithm. In the following flowchart p is principle amount r is rate of interest n is number of years and i is used for simple interest. Algorithm to find simple interest. So flowcharts can be used for presenting algorithms.
Calculate interest using formula si amount rate time 100 step 4. The flowchart for simple interest is attached below. A flowchart is the graphical or pictorial representation of an algorithm with the help of different symbols shapes and arrows in order to demonstrate a process or a program. Print the table of a given number n up to ten terms.
With algorithms we can easily understand a program. Algorithms consist of a set of steps for solving a particular problem while in flowcharts those steps are usually displayed in shapes and process boxes with arrows. Read the value of number in. Read principal time and rate p t r step 3.
Read principal amount rate of interest and time period.