Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
JAVA programming question and problem. Help Please!?
Hi Everyone,
I designed my JAVA programming with the following from a previous assignment and was told it did not execute, but when I ran it in JAVA it was fine. I now have to add the following:
Write the program in Java (without a graphical user interface) using a loan amount of $200,000 with an interest rate of 5.75% and a 30 year term. Display the mortgage payment amount and then list the loan balance and interest paid for each payment over the term of the loan. If the list would scroll off the screen, use loops to display a partial list, hesitate, and then display more of the list. I also have to show a flow chart on how it works and I AM REALLY LOST.
HERE IS MY PREVIOUS CODE:
public class MortageCalculator {
public static void main(String [] args) {
//declare variables
double interestRate=.0575;
int amount=200000;
int term=30;
double monthlyInterestRate=interestRate / 12;
int totalMonths=term * 12;
double payment=amount * (1-(Math.pow((1+monthlyInterestRate ),(-totalMonths))));
//display payment amount
System.out.println("The monthly payment for your mortage is" + payment);
}
}
ANY HELP IS APPRECIATED!! THANKS
2 Answers
- Germann ALv 71 decade agoFavorite Answer
Did YOU try to run it?
What is the result?
Does it look correct?
Did you check your calculations?
- salgueroLv 45 years ago
Why dont you get a e book on commencing up Java programming? skip to amazon and variety "newbie Java" or something like that. Then artwork interior the direction of the e book. i'm effective there'll be many examples.