Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a Java Expert!

Join 244,289 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 986 people online right now. Registration is fast and FREE... Join Now!




Yet another mortgage calculator

 
Reply to this topicStart new topic

Yet another mortgage calculator

bjcerda
17 Nov, 2008 - 09:47 PM
Post #1

New D.I.C Head
*

Joined: 17 Nov, 2008
Posts: 15


My Contributions
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.gif

CODE
  

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


User is offlineProfile CardPM
+Quote Post


n8wxs
RE: Yet Another Mortgage Calculator
17 Nov, 2008 - 10:05 PM
Post #2

--... ...-- -.. . -. ---.. .-- -..- ...
Group Icon

Joined: 6 Jan, 2008
Posts: 1,609



Thanked: 223 times
My Contributions
Try import java.io.*;
User is offlineProfile CardPM
+Quote Post

bjcerda
RE: Yet Another Mortgage Calculator
24 Nov, 2008 - 08:32 PM
Post #3

New D.I.C Head
*

Joined: 17 Nov, 2008
Posts: 15


My Contributions
QUOTE(n8wxs @ 17 Nov, 2008 - 10:05 PM) *

Try import java.io.*;



Thank you! what an oversite smile.gif blink.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 03:38PM

Live Java Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month