Assignment: MATLAB Calculation | Week-2

Assignment: MATLAB Calculation | Week-2

Coursera
Introduction to Programming with MATLAB
Week 2
MATLAB as a Calculator

 Assignment: MATLAB Calculation 

 Question:  We borrowed $1000 at a 10% annual interest rate. If we did not make a payment for two years, and assuming there is no penalty for 

non-payment, how much do we owe now? Assign the result to a variable called debt.

 Input: 

money_borrowed=1000;

interest_rate=.10;

end_loan_of_first_year=(money_borrowed*interest_rate)+money_borrowed

new_interest=end_loan_of_first_year*interest_rate


debt=end_loan_of_first_year+new_interest
Output: 
end_loan_of_first_year =

1100


new_interest =

110


debt =

1210
The above questions are from “Introduction to Programming with MATLAB” You can discover all the refreshed questions and answers related to this on the “Introduction to Programming with MATLAB – Coursera Quiz Answers By Coursera” page. If you find the updated questions or answers, do comment on this page and let us know. We will update the answers as soon as possible.


Do Not Only Use These Quizzes For Getting Certificates.You Can Take Help From These Quizzes Answer. All Quizzes & Contents Are Free Of Charge. ✅

If You Want Any Quiz Answers Then Please Contact Us

Leave a Comment