CPPForSchool.com: Library Function Set 1: Assignment 1
1.
Write a program which input principal, rate and time from user and
calculate compound interest. You can use library function.
CI = P(1+R/100)T - P
This assignment was quite a surprise. I thoroughly enjoyed coding this assignment because it pretty much gave me everything needed, specifically the equation for compound interest. Luckily, I was already familiar with utilizing the math.h library in order to utilize the exponent function, "pow". Below is my source and output. Lastly, I included the sample source and output for comparison.
CI = P(1+R/100)T - P
This assignment was quite a surprise. I thoroughly enjoyed coding this assignment because it pretty much gave me everything needed, specifically the equation for compound interest. Luckily, I was already familiar with utilizing the math.h library in order to utilize the exponent function, "pow". Below is my source and output. Lastly, I included the sample source and output for comparison.
Comments
Post a Comment