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
the population of Bainville is 2000 the population is supposed to grow by 10% each year for the next 5 years how many people liv
Art [367]

Answer:

3000 people live in brainesville

Step-by-step explanation:

Population of brainville =2000

Grow rate of population per year =10%

10% of population =2000*10/100=200

Grow rate of 5 year=200*5=1000

After 5 year population of brainville is=2000+1000=3000

6 0
3 years ago
Factor 16x to the 5th power subtract x to the third power
Alex787 [66]

Answer:

X ^3 (4x+1) (4x-1)

Step-by-step explanation:

Factor x3 out of  16x5−x3

Rewrite 16x2 as  (4x)2

Rewrite 1 as 1^2

Factor

x^3 (4x+1) (4x-1)

I hope I helped

3 0
3 years ago
Which line is the best model for the data in the scatter plot? A scatterplot with an x axis labeled, variable A from twenty to s
Firlakuza [10]

The line which is the best model for the data in a scatter plot is: D. A scatterplot with an x axis labeled, variable A from twenty to sixty in increments of ten and the y axis labeled, variable B from twenty to forty in increments of five with a negative trend line through the middle of eight points.

<h3>What is a scatter plot?</h3>

A scatter plot can be defined as a graph which uses Cartesian coordinates (x-axis and y-axis) to display the values of two (2) variables, with the resulting points revealing any correlation between the data.

<h3>What is a trend line?</h3>

A trend line refers to an statistical (analytical) tool that is used in conjunction with a scatter plot, so as to determine whether or not there's any correlation between a data.

For example, a scatterplot with an x-axis with its points ranging from twenty (20) to sixty (60) in increments of ten (10) while the y-axis has  its points ranging from twenty (20) to forty (40) in increments of five (5) with a negative trend line through the middle of eight (8) points i.e above and below the trend line.

Read more on scatterplot here: brainly.com/question/6592115

7 0
2 years ago
If a lb of beef cost $4.25, how much would 1 1/4 lb cost?
AlladinOne [14]

Step-by-step explanation:

$4.25×1 1/4=$4.25/1×5/4=$21.25/4=$5.25

8 0
3 years ago
Read 2 more answers
What is the value of b in this diagram?
Zielflug [23.3K]
12/ sin(113.17) = b/ sin (37.81)
so b= 8
8 0
4 years ago
Read 2 more answers
Other questions:
  • If a train stops at 0600 hours and begins at 0100 hours how many are left until a day?
    9·2 answers
  • What is 7 9/27 in simplest form <br>​
    11·2 answers
  • Answer ^^<br><br> super ez<br><br> lol
    9·2 answers
  • Which equation best represents the line graphed above?
    8·1 answer
  • Solve and show working for 4/7 × 2/9
    9·1 answer
  • A television originally cost
    8·1 answer
  • Factor the expression completely <br> 16x2 - 9y2
    11·1 answer
  • PLEASE HELP!!!!!! REAL ANSWERS ONLY!!!!!! NO LINKS!!!!!!!​
    13·1 answer
  • What property of addition is defined by ( a + b ) + c + a + ( b + c )​
    10·1 answer
  • Plz I need help this is due tonight
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!