Questions:
1. Write a class called Mortgage that calculates the cost of a mortgage. Prompt the user to enter the principal amount, the term in years, and the interest rate per year. The program will then display the monthly mortgage formatted as a currency. The following standard formula is used to calculate the mortgage payment.
2. Write a class called Code that outputs a security code. The code be presumed to consist of three letters, randomly generated from 'A' to 'Z', followed by between one and three digits, also generated randomly.
3. Write a class called Message that prompts the user to enter a message of three words as one string, where words are separated by a single space. The program capitalizes the randomly chosen letter in each word, makes the rest of the word lowercase, and outputs the result. Also it outputs the number of letters in each word, printing the results into two columns: word and number of letters.