Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions