Q:
Write a C++ Program to Calculate Compound Interest
belongs to collection: C++ Basic Solved Programs
C++ Basic Solved Programs
- Write a C++ Program to Display Number (Entered by the User)
- Write a C++ Program to Add Two Numbers
- C++ Program to Find Quotient and Remainder of 2 numbers
- C++ Program to Swap Two Numbers without using third variable
- C++ Program to Find Size of Int Float Double and Char Data types
- Write a C++ Program to Calculate Multiplication of two Numbers
- Write a C++ Program to Display ASCII Value of a Character
- C++ Program to Generate Random Numbers between 0 and 100
- C++ Program to Find Sum and Average of three numbers
- C++ Program to convert inches to feet yards and inches
- Write a C++ Program to raise any number X to power N
- Write a C++ Program to find Addition of Two Numbers
- Write a C++ Program to Convert Days Into Years Weeks and Days
- Write a C++ Program to Convert Days Into Years Weeks and Days
- C++ Program to find Square Root of a number using sqrt() function
- Write a C++ Program to Calculate Compound Interest
- C++ program to Find Cube of Number using MACROS
- C++ Program to Find whether given Number is Odd or Even
- C++ Program to Check Character is Uppercase, Lowercase, Digit or Special
- C++ Program to Check whether a year is Leap year or not
- C++ Program to Find Roots of Quadratic Equation using if else
- Write a C++ Program to Check Whether a character is Vowel or Consonant
- C++ Program to Check whether given number is Even or Odd
- Write a C++ Program to Check a number is Prime or not
- C++ Program to find Factorial of a Number using Recursion and Loop
- C++ program to Print Multiplication Table of a given number
- C++ Program to Reverse a Number using while loop
- C++ Program to Find the Number of Digits in a number
- C++ Program to Generate Fibonacci Series for N numbers
- C++ Program to Check whether a Number is Armstrong or not
- C++ program to Find Largest of three numbers using nested if
- C++ program to Check whether a number is palindrome or not
- C++ Program to Calculate HCF of Two Numbers using Functions
- C++ program to find LCM of two numbers using functions
- Write a C++ program to find Square Root of a Number
- Write a C++ Program to find Cube Root of a Number
- C++ Program to find Sum of Digits of a Number using while loop
- C++ Program to Find Power of a Number using for loop
- C++ Program to Find Sum and Average of n numbers using for loop
- C++ Program to Print Pascal Triangle using function
What is compound interest?
It is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum plus previously-accumulated interest.
It may be contrasted with simple interest, where interest is not added to the principal, so there is no compounding.
Annual compound interest formula
The formula for annual compound interest, including principal sum, is:
Where:
Note that this formula gives you the future value of an investment or loan, which is compound interest plus the principal. Should you wish to calculate the compound interest only, you need this:
Total compounded interest = P (1 + r/n) (nt) – P
This program will read principal, rate and time in years and then print compound interest on entered principal for given time period.
Here is source code of the C++ Program to Calculate Compound Interest. The C++ program is successfully compiled and run(on Codeblocks) on a Windows system. The program output is also shown in below.
SOURCE CODE : :
OUTPUT : :
Above is the source code for C++ Program to Calculate Compound Interest which is successfully compiled and run on Windows System.The Output of the program is shown above .
need an explanation for this answer? contact us directly to get an explanation for this answer