Mortgage Calculator
Modify your mortgage to include two functions
1- A function to get principal, rate, and term.
2- A function to calculate monthly payment.
Test your program by getting the data from the user by using the function and calculate monthly payment by calling the other function. Write comments.
Input Validation: Do not accept negative values for loan amount (principal), rate, and term. You cannot use global variable for this assignment.)