Quote:

*

Chapter 3 Debugging Assignment

Programmer:

Date:

Program Name: Bert,java

Purpose:

*/

import java.io.*;

public class Bert

{

public static void main(String[] args)

{

//Declaring Variables

int price, downpayment, tradeIn, months,loanAmt, interest;

double annualInterest, payment;

String custName, inputPrice,inputDownPayment,inputTradeIn,inputMont hs, inputAnnualInterest;

BufferedReader dataIn = new BufferedReader

(new Inputstreamreader(System.in));

//Get Input from User

System.out.println("What is your name? ");

custName = dataIn.readLine();

System.out.print("What is the price of the car? ");

inputPrice = dataIn.readLine();

System.out.print("What is the downpayment? ");

inputDownPayment = dataIn.readLine();

System.out.print("What is the trade-in value? ");

inputTradeIn = dataIn.readLine();

System.out.print("For how many months is the loan? ");

inputMonths = dataIn.readLine();

System.out.print("What is the decimal interest rate? ");

inputAnnualInterest = dataIn.readLine();

//Conversions

price = Integer.parseInt(inputPrice);

downPayment = Integer.parseInt(inputDownPayment);

tradeIn = Integer.parseInt(inputTradeIn);

months = Integer.parseInt(inputMonths)

annualInterest =Double.parseDouble(inputAnnualInterest);

//Calculations

interest = annualInterest/12;

loanAmt = price-downPayment-tradeIn;

payment=loanAmt/((1/interest)-(1/(interest*Math.pow(1+interest months));

//Output

System.out.print("The monthly payment for " + custName + " is $");

System.out.println(payment);

}

}

What do I need to do so it'll run? I can't even get the output at this point.