[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Please provide layman's terms

Asked by waw9667 in Java Programming Language

Tags: terms, what, layman

Could you give a brief explanation to the areas where you see // ???  Thank you and here is my program.

 public static void main(String[] args)

    {

          DecimalFormat twoDigits = new DecimalFormat("$###,###.00");

         
        double mortgage = 200000.00;
        double[][] yearsYearlyRate =  //Multiplies term by interest rate

       
        {
            { 7, 15, 30 },          
            { 5.35, 5.5, 5.75 }
        };

       
        double[][] monthsMonthlyRt =

        {
            {
                 yearsYearlyRate[0][0] * 12, yearsYearlyRate[0][1] * 12,
              yearsYearlyRate[0][2] * 12  
            },
            {
             
                    yearsYearlyRate[1][0] / 1200, yearsYearlyRate[1][1] / 1200,
                    yearsYearlyRate[1][2] / 1200
            }
        };


       
        for (int i = 0; i < 3; i++) // brief descriotion please of what this means

        {

            // ??? Please help here
            double payment = calPayment(monthsMonthlyRt[1][i], monthsMonthlyRt[0][i], mortgage);

           

            System.out.println("\nMortgage Amount \tTerm \t\tRate \t\tMonthly Payment");
            System.out.println("$200,000 \t\t" + yearsYearlyRate[0][i] + " years\t"
            + yearsYearlyRate[1][i] + "%\t\t" + twoDigits.format(payment));


            System.out.println("\nPayment # \tMonthly Interest Paid \t\tRemaining Loan Balance");

           
            interestBalanceList(mortgage, monthsMonthlyRt[1][i], monthsMonthlyRt[0][i], payment);

        }

    }

    // I totally do not understand what this entire double tmp or param thing means.  Please help !!!
    public static double calPayment(double param1, double param2, double mortgage) {


              double tmp = 1 + ( param1 ) ;
              for ( int i = 1 ; i < param2 ; i++)
              tmp = tmp * ( 1 + param1 ) ;
              double monthlyPayment = mortgage * tmp * param1 / ( tmp - 1 ) ;

     
      // double monthlyPayment = (param1 + param2 / (Math.pow((1 + param1), param2) - 1)) * mortgage;

             return monthlyPayment;
    }

   
    public static void interestBalanceList(double mortgage, double param1, double param2,
    double payment)

            {

       
             for (int i = 1; i < (param2 + 1); i++)  // Provide brief description please

        {


            System.out.println("Press 'ENTER' to view the loan amortization.");

            try

            {
                System.in.read();    
            }   catch (Exception e)  // what will the catch portion do ?????


            {

            }

            // Calculate the Monthly Interest of the Loan Balance
            double monthlyInterest = mortgage * param1;

            // Calculate the Remaining Loan Balance
            double loanRemaining = mortgage - (payment - monthlyInterest);

            // Set the value of Mortgage Amount to the Value of the Remaining Loan Balance
            mortgage = loanRemaining;

            // Format the Monthly Interest Amount into U.S. Currency
            NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US);
            String str = n.format(monthlyInterest);

            // Format the Remaining Loan Balance into U.S. Currency
            NumberFormat num = NumberFormat.getCurrencyInstance(Locale.US);
            String string = num.format(loanRemaining);

         

            System.out.println("\n " + i + "\t\t\t" + str + "\t\t\t" + string);  // Please explain the string ???????

        }
    }  // Also, I would like to make the program pause after showing 12 payments on the screen so
       // how would I go about doing this ?????
}
 
Related Solutions
Keywords: Please provide layman's terms
 
Loading Advertisement...
 
[+][-]08/01/06 11:54 PM, ID: 17230804Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Java Programming Language
Tags: terms, what, layman
Sign Up Now!
Solution Provided By: Ajay-Singh
Participating Experts: 4
Solution Grade: A
 
[+][-]08/01/06 11:27 PM, ID: 17230725Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/01/06 11:29 PM, ID: 17230732Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/01/06 11:30 PM, ID: 17230734Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/01/06 11:32 PM, ID: 17230742Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/01/06 11:36 PM, ID: 17230757Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/01/06 11:55 PM, ID: 17230806Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/01/06 11:56 PM, ID: 17230807Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/01/06 11:57 PM, ID: 17230813Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/02/06 12:09 AM, ID: 17230855Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/11/06 04:14 AM, ID: 17493426Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/15/06 04:00 AM, ID: 17528183Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93