Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Please add a loop to ask the user if they would like to try a different loan amount. def greeting ( ) : print
Python
Please add a loop to ask the user if they would like to try a different loan amount.
def greeting:
printGreetings Please fill out this loan application."
def thankyou:
printThank you for your loan application."
def calculateloantotalamount interest, years:
total amount
for year in range years :
total interest
printfYear year: $total:f
def main:
greeting
amount floatinputPlease enter the loan amount:
interestrate floatinputPlease enter the annual interest rate in percentage, eg for :
interest interestrate
years intinputPlease enter the number of years for the loan:
print
Calculating loan values for each year...
calculateloantotalamount interest, years
thankyou
if namemain:
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