1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
irinina [24]
3 years ago
15

Kim wants to buy a car. Help Kim compute the monthly payment on a loan, given the loan amount, the annual percentage rate of int

erest, and the number of monthly payments.The program should allow Kim to input the loan amount, interest rate, and how many payments she wants to make.It should then compute and display the monthly payment.You will need the following variables:Payment LoanAmt InterestRateMonthlyRate NumberMonthsYou will need the following formulas:MonthlyRate = InterestRate/1200Note: when the user enters InterestRate as a percentage, it must be divided by 100 to make it a decimal (i.e., 18% = 18/100 = 0.18).The InterestRate offered by car dealers is an annual rate so this must be divided by 12 to get the MonthlyRate.The formula given above combines the two steps (i.e., annual rate of 18% = 18/100 = 0.18 and the monthly rate is 0.18/12 = 0.015 or 18/(100*12) = 18/1200.Payment = LoanAmt * MonthlyRate * (1 +MonthlyRate)^NumberMonths (divided by) ((1 +MonthlyRate)^NumberMonths -1)Note: The formula must be entered carefully, exactly as shown.

Mathematics
1 answer:
Assoli18 [71]3 years ago
3 0

Answer:

The complete Python program to calculate the monthly payment on a loan with step by step explanation is given below.

Python Code with Explanation:

# get the loan amount from the user

LoanAmt=eval(input("Please enter the loan amount: "))

# get the annual interest rate from the user in percentage form

InterestRate=eval(input("Please enter the annual interest rate in percentage: "))

# get the number of months from the user

NumberMonths=eval(input("Please enter the number of months: "))

# convert the annual interest rate into monthly interest rate and also into decimal form according to the equation given in the question

MonthlyRate = InterestRate/1200

# implement the given equation to find out the required monthly payment, the operator (**) is used to raise to the power

Payment = (LoanAmt*MonthlyRate (1+MonthlyRate)**NumberMonths)/((1+MonthlyRate)**NumberMonths -1)

# finally, print the monthly payment

print("The monthly payment is: ", Payment)

Output:

Please enter the loan amount: 1500

Please enter the annual interest rate in percentage: 15

Please enter the number of months: 12

The monthly payment is: 135.38746851773584

Bonus:

You can use this command to limit the digits after the decimal point

For example following code will limit to 2 digits after the decimal point.

print(format(Payment, '.2f'))

You might be interested in
a science fair poster is a rectangle 48 inches long and 24 inches wide what is the area of the poster in square feet
anzhelika [568]
Answer:

Area=B×H=48×24=1,152 inches^2
8 0
4 years ago
Read 2 more answers
The temperature during a winter day was less than –3 degrees Fahrenheit. Yuri wants to write an inequality for the temperature d
sveticcg [70]
We are given that the temperature is less than (<) -3 degrees Fahrenheit.
Since the temperature is represented by the variable "t", then t is less than -3.

So, the inequality which best describes the situation is:
t < -3 

Checking the choices, we will find that the correct choice is: 
<span>C: t < -3</span>
8 0
3 years ago
Read 2 more answers
FREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOINTSFREEPOIN
nadezda [96]
Lnockfousoudoucojvpufyx
6 0
3 years ago
Read 2 more answers
Write a linear equation that passes through pairs would be perpendicular to the equation the point (2, -9) and has a slope of -5
Lostsunrise [7]

A A equation that’s perpindicular to y = 4x - 1 and passes through the point (2, -9) is…

Answer: y = -3/4x - 15/2

Explanation: Opposite reciprocal slopes and plug in -9 with y and 2 with x then solve for b

-9 = -1.5 + x

x = -15/2

6 0
3 years ago
The graph shows the axis of symmetry for a quadratic function f(x). On a coordinate plane, a vertical dashed line at (4, 0) is p
anastassius [24]

Answer:

its C

STEP BY STEp

3 0
4 years ago
Read 2 more answers
Other questions:
  • Which describes simple, solid instruments that produce sound by struck, scraped, or shaken?
    9·2 answers
  • Sandi works for Elizabeth Arden Cosmetics and earns $500 per week salary plus 4% commission on sales over $2,000. If Sandi sold
    12·1 answer
  • 6x^2-16x+5=0<br> A. 8/3<br> B. -3/8<br> C. 5/6<br> D. -5/16
    11·1 answer
  • Part: 92 Whole: 575 Percent: ?
    12·2 answers
  • Please help me! Number 13 and 14
    15·1 answer
  • What single transformation was applied to quadrilateral A to get quadrilateral B?
    7·1 answer
  • -2x + 4 + 8x<br> I need help
    13·1 answer
  • Help me please The total number of students who could attend a field trip is represented by the variablet. The number of student
    6·2 answers
  • An oblique cylinder has a diameter of 14 units. The volume of the cylinder is 1,176 cubic units. what is the height of the cylin
    6·2 answers
  • Trigonometry Quiz, see photos attached.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!