Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python When you borrow money from a bank, the amount of money is called the principal. Typically, you borrow the principal for a certain number
python
When you borrow money from a bank, the amount of money is called the principal. Typically, you borrow the principal for a certain number of years, and pay for this privilege. The amount of money that you pay for the loan, above and beyond the principal, is called the interest, and is usually expressed as a percentage of the principal To calculate the interest owed on a loan, we take the product of the principal, the number of years of the loan, and the percentage interest rate, and divide all that by 100. For example, if you borrow $100 for 5 years at 12.5%, you will owe $62.50 in interest. The following assignment statements give the principal, number of years, and interest rate, respectively: principal - 550 years - 7 interest rate = 15.0 Write a statement in Python that will print out the owed interest. Your statement should refer to the variables principal, years, and interest_rate, and it should not copy their literal values into the expression. Instead, refer to the values by their variable name. The result should be: 577.50 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started