Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java - Finance Interest

pol212
pol212 


Based on the previous homework, I need to amend code in the attached .zip file. The instructions are in two image files attached. There are two questions to complete. Attachments Tags Clarifications

Answers

Java - Finance Interest - Solution

dickersonka
dickersonka 



Attached is the solution to the Java - Finance Interest assignment Attachments
FinanceInterest.zip (2 K) Download
Preview
1 + ( r / 1200), -12 * y)) ) / r; } else { //assume y = 0 //make sure proper loan double temp = (1200 * m) / c; if(r >= temp){ //not proper System.out.println("\nc, m, and r do not represent

Preview
Enter interest rate: 18.78 Cost = 2400.00 Monthly Payment = 50.00 Years Financed = 7.47 Interest Rate = 18.78 ---------------------------- Enter cost: 0 Enter monthly payment: 116.11 Enter years financed: 10 Enter interest rate: 7.0 Cost = 10000.13 Monthly Payment = 116.11 Years Financed

Preview
financed: 10 Enter interest rate: 7.0 Cost = 10000.13 Monthly Payment = 116.11 Years Financed = 10.00 Interest Rate = 7.00 Total Interest = 3933.07 ---------------------------- Enter cost: 8398.7 Enter monthly payment: 20.57 Enter years financed: 0 Enter interest rate: 2.94 c, m, and r do not represent

Preview
1200.0))); } } //make sure proper loan, y = 0 if not proper if(y > 0){ double totalInterest = 12.0 * m * y - c; //format to display results DecimalFormat df = new DecimalFormat("0.00"); //display calculated field

Screenshots
Purchase Answer