Question

Suppose that Gomez takes out a loan for $22,000 to buy a new SUV (after trading...

  • Suppose that Gomez takes out a loan for $22,000 to buy a new SUV (after trading in his car). The bank charges 6% annual interest on the unpaid balance, compounded monthly (that's 0.5% interest each month). If Gomez pays $300 at the end of each month, how many months will it take him to pay off his loan (name the variable m)? What is the amount of his last payment (name the variable last_instalment)? His last payment will just cover the unpaid balance so will likely be less than $300.
  • If, in writing a while loop to solve this problem you accidentally typed 220000 (rather than 22000); i.e., you added an extra zero to the loan amount. Explain what would happen. If you don't know what would happen, try it out and then explain (use comment lines to write the answer).

Correct answers are: m = 92, last_instalment = 174.14)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Note: Done accordingly. Please comment for any problem. Please Uprate. Thanks.

Code:

void main(){
   int m=0;
   double p=220000;
   double rate=0.5;
   double amount=p;
   double last=0;
   while(amount>0){
       amount=amount*(1+rate/100);
       amount=amount-300;
       m++;
   }
   printf("Months: %d\nlast_instalment: %0.2lf\n",m,(300+amount));
   //Accidently making p=220000
   //for first month interest = 220000*0.005=1100 which is greater than payment
   //so this will go to infinite loop

}

Output:

Add a comment
Know the answer?
Add Answer to:
Suppose that Gomez takes out a loan for $22,000 to buy a new SUV (after trading...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Greg takes out a $22,000 loan to buy new motorcycle. The interest rate is 3.9% per...

    Greg takes out a $22,000 loan to buy new motorcycle. The interest rate is 3.9% per year and the term is 84 months. This works out to be a monthly payment of $300. (a) The first payment includes $71.50 of interest. How much principal is in the first payment? (b) What is the new loan balance after Greg makes the first payment? (c) Explain why it is incorrect to say that Greg will pay $71,50x84 = $6006 in total interest....

  • A company takes out a loan of 15,000,000 at an annual effective discount rate of 5.5%....

    A company takes out a loan of 15,000,000 at an annual effective discount rate of 5.5%. You are given: (i) The loan is to be repaid with n annual payments of 1,200,000 plus a drop payment one year after the nth payment. (ii) The first payment is due three years after the loan is taken out. Calculate the amount of the drop payment. 5. On January 1, 2010 Susan took out a 30-year mortgage loan in the amount of 200,000...

  • You have just taken out a $22,000 car loan with a 8% APR, compounded monthly. The...

    You have just taken out a $22,000 car loan with a 8% APR, compounded monthly. The loan is for five years. When you make your first payment in one month, how much of the payment will go toward the principal of the loan and how much will go toward interest? (Note: Be careful not to round any intermediate steps less than six decimal places.) When you make your first payment, $ will go toward the principal of the loan and...

  • 6 8 To help with the startup costs of his new yoga studio, Manuel is taking out a $62,000 amortized loan for 10 yea...

    6 8 To help with the startup costs of his new yoga studio, Manuel is taking out a $62,000 amortized loan for 10 years at 7.4% annual interest. His monthly payment for this loan is $732.72 Fill in all the blanks in the amortization schedule for the loan. Assume that each month isof a year. Round your 12 answers to the nearest cent. Payment number Principal Interest New loan balance payment payment $488.34 $39,140.67 $244.38 56 6 8 To help...

  • You have just taken out a $ 22,000 car loan with a 4 % ​APR, compounded...

    You have just taken out a $ 22,000 car loan with a 4 % ​APR, compounded monthly. The loan is for five years. When you make your first payment in one​ month, how much of the payment will go toward the principal of the loan and how much will go toward​ interest? ​(Note: Be careful not to round any intermediate steps less than six decimal​ places.) 1. When you make your first payment, how much money will go toward the...

  • C++ Program - Loan Payment Report Please write a C++ program to generate a detail loan payment report from the first month until the loan balance becomes zero or less than ten cents. You may use a whi...

    C++ Program - Loan Payment Report Please write a C++ program to generate a detail loan payment report from the first month until the loan balance becomes zero or less than ten cents. You may use a while loop such as: while (loanBalance >= monthPayment) { … }. When the loanBalance is less than the monthPayment, you need to compute the final payment amount, which should be the loanBalance plus its interest of one month. For example, if your last-month’s...

  • Alexander takes out a 6-year loan L that he repays using the amortization method. He makes...

    Alexander takes out a 6-year loan L that he repays using the amortization method. He makes monthly payments at a nominal annual interest rate of 7.2% compounded monthly. The first payment is $700 and is to be paid one month from the date of the loan. Each succeeding monthly payment will be 3% lower than the prior payment. Calculate the loan amount and the outstanding loan balance after the 46 th payment. L= and B46= NOTE: Loan = PV(all the...

  • AP10-1A (Journal entries for a loan) A company takes out a five-year, $1-million mortgage on October...

    AP10-1A (Journal entries for a loan) A company takes out a five-year, $1-million mortgage on October 1. The interest rate on the loan is 6% per year, and blended payments of $19,333 (including both interest and principal) are to be made at the end of each month. The following is an extract from the loan amortization table the bank provided the company: Beginning Loan Balance Ending Loan Balance Payment Interest Principal Payment 1 $19,333 $5,000 $1,000,000 985,667 $14,333 14,405 $985,667...

  • Omar just took out a loan from the bank for 142,894 dollars. He plans to repay...

    Omar just took out a loan from the bank for 142,894 dollars. He plans to repay this loan by making a special payment to the bank of 26,888 dollars in 3 months and by also making equal, regular monthly payments of X. If the interest rate on the loan is 0.8 percent per month, he makes his first regular monthly payment later today, and he makes his last regular monthly payment made in 7 months from today, then what is...

  • 4. Personal balance sheet Juan and Maria Gomez have been married for over 10 years. They...

    4. Personal balance sheet Juan and Maria Gomez have been married for over 10 years. They both have good jobs with consistent incomes, and they are good savers. They believe that their financial picture is good, but they have never prepared a balance sheet. Juan and Maria pulled together the following items from bank statements, pay stubs, and bills. Check the items that would appear on a balance sheet. Do not be concerned about whether the amounts are correct. Check...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT