Formatting investment data. The function moInterest() calculates the amount of interest paid in one month on a loan at a certain interest rate. Print a labelled return value from one call of moInterest() using the following output format, including the indicated number of digits after the decimal points:

- Code: Select all
`The monthly interest due on a loan with remaining principal $842.57 at an annual interest rate of 7.8% is $5.48.`

The code I have right now is:

- Code: Select all
`def mointerest(princip,intrate):`

interest = float(intrate/100)

final = interest * princip

print("The monthly interest due on a loan with remaining principal $", princip, "at an annual interest rate of ", intrate, "% is $", final)

mointerest(842.57, .78)

Unfortunately, I keep ending up with $6.57, where it should be $5.48. Any ideas on what I'm doing wrong? Thanks for the help.