Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
553 views
in C Programming by (15 points)
edited by

Write algorithm and flowchart for simple, compound interest?

Please log in or register to answer this question.

1 Answer

0 votes
by (44.8k points)

The algorithm to calculate the simple interest and compound interest is as follows:

Step 1:Start

Step 2: Read Principal Amount, Rate and Time

Step 3: Calculate Interest using formula SI= ((amount*rate*time)/100)

Step 4: Print Simple Interest

Step 5: Stop

// CPP program to find compound interest for

// given values.

#include <bits/stdc++.h>

using namespace std;

int main()

{

double principle = 10000, rate = 10.25, time = 5;

/* Calculate compound interest */

double CI = principle * (pow((1 + rate / 100), time));

cout << ""Compound interest is "" << CI;

return 0;

}

Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...