Write a program to track the payments for a no-interest personal loan.
The program will take as input the current balance of the loan. Then, until
the balance is paid off, the program will output the number of payments made
and the current balance and ask the user for how much to pay off. If the user
inputs a negative payment or a payment in excess of the balance, an error
message should be printed and the user should be prompted to enter a new
amount. The output should resemble the following:
Enter loan balance: 500
0 payments made. Balance is $500. Enter payment amount: 100
1 payments made. Balance is $400. Enter payment amount: 200
2 payments made. Balance is $200. Enter payment amount: -5
$-5 is too low for a payment. Enter payment amount: 100
3 payments made. Balance is $100. Enter payment amount: 200
$200 is higher than the balance of $100. Enter payment amount: 100
Loan has been paid off in 4 payments.