Write An Algorithm And Draw A Flowchart To Calculate Simple Interest
Calculate s i ptr 100 4.
Write an algorithm and draw a flowchart to calculate simple interest. Step 3 calculate interest using formula si amount rate time 100 step 4 print simple interest. An algorithm is a step by step analysis of the process while a flowchart explains the steps of a program in a graphical way. Algorithms and flowcharts are two different tools used for creating new programs especially in computer programming. Join sarthaks econnect today largest online education community.
Write the current values of t and s i. Simple interest calculation is one of the routine activity performed by banks. Not a very complicated algorithm all you need to do is to multiply capital x interest rate x number of time periods. Draw a flow chart to calculate simple interest.
We can easily understand the whole program by this algorithm. Savings bank account holder gets interests on their deposits in bank. Step 2 read principal amount rate and time. So flowcharts can be used for presenting algorithms.
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. Write an algorithm to calculate simple interest. Loan takers from the bank pay the interest to the bank. Step 5 stop cpp program to find compound interest for given values.
Read principal amount rate of interest and time period. Algorithm to find simple interest. The flowchart for simple interest is attached below. Asked in debt collection banking.
Print the simple interest. Asked aug 30 2018 in computer by arpita 71 7k points. Basic computer science assignment help calculate simple interest algorithm algorithm. Set the count t to 1 implying the end of a year.
Read the values of principal amount time and rate of simple interest into the locations labelled as p t r. If the interest rate is expressed in percent you also need to divide. Calculate interest by using the formula. The algorithm to calculate the simple interest and compound interest is as follows.
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. Draw a flow chart to calculate simple interest with 10 rate if time is greater than 2 yrs otherwise calculate simple interest with 5.