Code:

#include <iostream>
#include <math.h>
#include<iomanip>
using namespace std;
int main ( void )
{
// Name - Class - Assignment - Due Date
cout<< "Ben Langodon\nComputer Science\nHomework 10\n4\\3\\08\n\n";
// Variables
float rate; // Annual Interest rate
float moneyBorrowed; // Amount of money borrowed
float monthlyPay; // Amount paid every month
float rateTerm; // pow( 1 + rate, term)
// Term in years - Term in months
float term; // Term of loan in years
int term1; // term * 12
// formula variables
float a1; // rate * rateTerm
float a2; // rateTerm - 1
float a3; // a1 / a2
// setpricision
setprecision(2);
// Defining of Variables
cout<<"Amount of Money Borrowed:"<<setw(25);
cin>>moneyBorrowed;
cout<<"Annual Interest Rate:"<<setw(25);
cin>>rate;
cout<<"Term of Loan in years:"<<setw(25);
cin>>term;
// Term * 12, years to months
term1 = term*12;
// 2nd varaibles
cout<<"Term of Loan in months:"<<term1;
// Process
rateTerm = powf(1 + rate,term1);
a1 = rate * rateTerm;
a2 = rateTerm - 1;
a3 = a1/a2;
monthlyPay = a3*moneyBorrowed;
// Output
cout<<setw(25)<<"\n\nAmount paid a month:"<<monthlyPay;
}

well i tried to tweak the processes area from having all as one problem to parts of the problem

it still didn't work

on the left is my work,

right top is the assignment,

right bottom is the compiled program as it ran

the values we are supposed to use are

money borrowed (moneyBorrowed) : 120,000

interest rate (rate) : 7

term in years : 30

and the answer is supposed to be 798.36

i will rewrite the processes part without the variables and post that if anyone wants it like that