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.









Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 9

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8