Here is the question
i would really appreciated if someone can provide me with code. thanks in advance.
this is for C++:
write a program that lets the user enter loan amount
and loan period in number of years and display the monthly and total payments for
each interest rate from 5% to 8%, increment of 1/8.if you enter
the loan amount 10000 for five years,it will display as follows:
loan amount: 10000
Number of years:5
not really i mean i don't know how write a code formula for monthly payment and total payment.
do i need to use while loop for this problem? thanks for the reply
i have come up this far rightnow.
#include "stdafx.h"
#include<iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
double interest_rate,monthly_payment,total_payment;
int loan_amount,loan_period;
cout<<"Enter a loan amount:"<<endl;
cin>>loan_amount;
cout<<"Enter loan period:"<<endl;
cin>>loan_amount;