Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CityToronto bank provides mortgages for individuals and businesses up to $300,000. Write a Java console application that keeps track of mortgages and computes the total

CityToronto bank provides mortgages for individuals and businesses up to $300,000. Write  a Java console application that keeps track of mortgages and computes the total amount owed at any time (mortgage amount + interest). Design the following classes to implement your application: Mortgage - an abstract class (Mortgage.java) that implements the MortgageConstants interface (MortgageConstants.java). A Mortgage includes the following (choose appropriate data types): - a mortgage number, -customer name, -amount of mortgage, -interest rate, and -term Don't allow mortgage amounts over $300,000. Force any mortgage term that is not defined in the MortgageConstants interface to a short-term, one year loan. Create  a getMortgageInfo method to display all the mortgage data. MortgageConstants - includes constant values for short-term (one year), medium-term (three years) and long-term (5 years) mortgages. It also contains constants for bank name and the maximum mortgage amount. BusinessMortgage (BusinessMortgage.java) - extends Mortgage. Its constructor sets the interest rate to 1% over the current prime rate. PersonalMortgage (PersonalMortgage.java) - extends Mortgage. Its constructor sets the interest rate to 2% over the current prime rate. ProcessMortgage - a main deriver class that create  an array of 3 mortgages. Prompt the user for the current interest rate. Then in a loop prompts the user for a mortgage type  and all relevant information for that mortgage. Store the created Mortgage objects in the array. When data entry is complete, display all mortgages.


Step by Step Solution

There are 3 Steps involved in it

Step: 1

import javautilScanner MortgageConstants interface interface Mor... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Programming

Authors: Joyce Farrell

9th edition

1337397075, 978-1337397070

More Books

Students also viewed these Banking questions