//Jave Coding created by Brandi 11.14.08
//Mortgage Payment Calculator to output
//First requirement_output_payment schedule
//for a 200k loan over a 30 year term at 5.75% interest
//Second requirement_output_payments schedule for same
//add_mortgage payment amount_balance_and interest paid for each payment
//over the term_looping to catch all payments
//Third requirement_output_payments schedule for 7_15_30 year at
//5.35_5.5_5.75 with an array 30 year term
//Varies- Principal, Percentage, Months
//Constants- Equation
//Program Start
import java.io;
import java.text.DecimalFormat;
public class mtg_calc2
{
public static void main(String[]args)
{
double payment, principal, interest, payment_n, A;
principal= 200000.00; //principal
interest= 0.0575; //interest
payment_n= 360; //number of payments
A= (interest*principal*(1+interest));
//title of program
System.out.println("Welcome to the Cerda Mortgage Calculator!");
System.out.println("\nYour mortgage principal amount is $200,000.\nYour mortgage term is 30 years \nYour interest rate is 5.75%");
System.out.println("Based on this information, your payment is: $"+A);
}
}
My error message upon compiling:
C:\Users\fileDocuments\mtg_calc2.java:28: cannot find symbol
symbol : class io
location: package java
import java.io;
^
1 error
Tool completed with exit code 1
Please tell me what I did wrong to the class?

New Topic/Question
Reply



MultiQuote




|