Question
1. Write a program using C++ the value return function that can be used to compute the compound interest based on the given formula: Inputs
1. Write a program using C++ the value return function that can be used to compute the compound interest based on the given formula: Inputs to the functions are: n, t, a, and P Total compounded interest = P (1 + r/n) (nt) - P Where P is the principal loan amount r is the annual interest rate = a/100 n = no of times per year the interest is compounded (if monthly, them n will be 12) t = number of years the loan is borrowed for. The function should return the total compound interest. Write a program using C++ main to compute the compound interest by supplying suitable inputs and display the loan amount and the compound interest.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started