Question: Python 1 . Ask the user to input 3 valuse for a loan. The amount of the loan, the interest for the loan and the
Python
Ask the user to input valuse for a loan. The amount of the loan, the interest for the loan and the number of years for the loan.
Show a calculation that takes the amount, interest, and the years to calculate the total value of the loan.
Use a loop starting from year and going up to the year that was input by the user to calculate the total value of the loan for that year.
Print the year and the loan amount formatted to decimal places.
def greeting:
printGreetings to you, please fill out this loan application"
def thankyou:
printThank you for your loan application"
greeting
def main:
for i in range:
printi
amount floatinputPlease enter the loan amount:
interest floatinputPlease enter the interest rate:
years intinputPlease enter years of the loan:
printYou entered", amount
printfThis is the loan amount:f approximate"
total amount interest
thankyou
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
