2 Replies - 911 Views - Last Post: 24 November 2008 - 09:32 PM Rate Topic: -----

#1 bjcerda  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 17-November 08

Yet another mortgage calculator

Posted 17 November 2008 - 10:47 PM

Please help me. I'm trying my first mortgage calc. I was thrown into this one because it's the first week of class... yikes :blink:

  

//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?

Is This A Good Question/Topic? 0
  • +

Replies To: Yet another mortgage calculator

#2 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: Yet another mortgage calculator

Posted 17 November 2008 - 11:05 PM

Try import java.io.*;
Was This Post Helpful? 0
  • +
  • -

#3 bjcerda  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 17-November 08

Re: Yet another mortgage calculator

Posted 24 November 2008 - 09:32 PM

View Postn8wxs, on 17 Nov, 2008 - 10:05 PM, said:

Try import java.io.*;



Thank you! what an oversite :) :blink:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1