Write a class called mortgage that calculates the cost of a


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.

1261_payment.png

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.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a class called mortgage that calculates the cost of a
Reference No:- TGS0646771

Now Priced at $40 (50% Discount)

Recommended (99%)

Rated (4.3/5)