Write an algorithm and draw a flowchart to calculate SimpleInterest.
Question
Write an algorithm and draw a flowchart to calculate SimpleInterest.
Solution
Algorithm to calculate Simple Interest:
Step 1: Start Step 2: Declare variables P, T, R and SI. (P is the principal amount, T is the time in years, R is the rate of interest and SI is the simple interest) Step 3: Read values of P, T and R. Step 4: Calculate Simple Interest using the formula SI = (P * T * R) / 100 Step 5: Print SI Step 6: Stop
Flowchart:
- Start
- Declare variables P, T, R, SI
- Input P, T, R
- Calculate SI = (P * T * R) / 100
- Output SI
- Stop
The flowchart would look like this:
[Start] --> [Declare P, T, R, SI] --> [Input P, T, R] --> [Calculate SI = (P * T * R) / 100] --> [Output SI] --> [Stop]
Similar Questions
Write a pseudo code + Draw Flowchart that calculates the average of 3 numbers.
Write an algorithm and draw a flowchart to find greatest common divisor and smallest common divisor of two given positive number.
Draw a flowchart to calculate Sum = 1+2+3+...+n
Write an algorithm and draw a flowchart to check for temperature.If its below 25 degree print Cold else print HOT
Write algorithms and draw flowcharts for the following: Accept the length of side of a square and calculate their area and perimeter. Display the message accordingly.[6]
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.