Solve it in RStudio code please. Question 1. Suppose you have a loan of 1,000 euro. This is subject to an annual interest rate of 11%, compounded monthly. (This means a debt of d is d(1 + 0.11/12) after a month). You make monthly repayments of 12 euro. Use a while loop to aid you with the following questions: a) How long does it take to clear the debt (in months)? b) Draw a plot showing the amount owed every month. c) How much total interest is paid in the end? The correct answer is: Total Months = 159 and Interest Paid = 908 euros, BUT I NEED THE SCRIPT.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
Solve fast, I will give u like. M
Solve it in RStudio code please.
Question 1. Suppose you have a loan of 1,000
euro. This is subject to an annual interest rate of
11%, compounded monthly. (This means a debt
of d is d(1 + 0.11/12) after a month). You make
monthly repayments of 12 euro. Use a while
loop to aid you with the following questions:
a) How long does it take to clear the debt (in
months)?
b) Draw a plot showing the amount owed every
month.
c) How much total interest is paid in the end?
The correct answer is: Total Months = 159 and
Interest Paid = 908 euros, BUT I NEED THE
SCRIPT.
Transcribed Image Text:Solve it in RStudio code please. Question 1. Suppose you have a loan of 1,000 euro. This is subject to an annual interest rate of 11%, compounded monthly. (This means a debt of d is d(1 + 0.11/12) after a month). You make monthly repayments of 12 euro. Use a while loop to aid you with the following questions: a) How long does it take to clear the debt (in months)? b) Draw a plot showing the amount owed every month. c) How much total interest is paid in the end? The correct answer is: Total Months = 159 and Interest Paid = 908 euros, BUT I NEED THE SCRIPT.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Asymptotic Analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage