Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

#Ask user to input their infor about debt. amountofdebt= input("Please Enter your amount of debt:") interestrate= input("Please Enter your interest...

#Ask user to input their infor about debt.

amountofdebt= input("Please Enter your amount of debt:")

interestrate= input("Please Enter your interest rate:")

monthlypayment= input("Please Enter your monthly payment:")

#Convert the string input to float

amountofdebt = float(amountofdebt)

interestrate = float(interestrate)

monthlypayment = float(monthlypayment)

#Let the interest rate to a decimal number

interestCal=interestrate/100

firstmonthinterest= amountofdebt/interestCal

totalpayment=interestCal/12*amountofdebt

balance=amountofdebt-monthlypayment+firstmonthinterest

print("Interest this month = " (firstmonthinterest))

print("Balance going forward=" (balance)

print("Total payments =" (monthlypayment)

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question