Hello I am very new to programming as you will probably tell by my code, if anyone can help me solve my issue it would be much appreciated. I need to get this formula:
into c++ code with the variables below and I'm having quite a hard time, as I said, any help is appreciated.
into c++ code with the variables below and I'm having quite a hard time, as I said, any help is appreciated.
Code:
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double loanAmount = 25000;
double interestRate = 7;
double payment = 495.03;
double paymentsMade = 12;
double loanbalance = pow((loanAmount(1 + interestRate / 12 * 100), paymentsMade)) - (payment / interestRate / 12 * 100)* pow(loanAmount((1 + interestRate / 12 * 100, paymentsMade) - 1));
Comment