Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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