Sorry about people I am new at this let me explain I am building a calculator, which I have all of it built on Microsoft word I am stuck to add more
<pre><code>*/

import java.text.DecimalFormat;

public class Buddy {   

public static void main(String[] args) {

  //Declaring and initializing the variables
  double principle = 200000.0;
  double interestRate = 0.0575;
  int term = 360;

  DecimalFormat decimalPlaces=new DecimalFormat("0.00");

  // Calculating the monthly payment: M = P [ i(1 + i)n ] / [ (1 +  i)n - 1]
  double monthlyRate = (interestRate/12);
  double t = Math.pow((1 + monthlyRate),term);
  double payment = (principle * monthlyRate * t) / (t-1);

  //Display the results on computer screen
  System.out.println("The monthly payment for a mortgage of 200000 is $" + decimalPlaces.format(payment));

        }
    }
</code></pre>
