Calculate the amount of the mortgage payment

Assignment Help Computer Engineering
Reference no: EM132200993

Write a Java program that reads the amount of a mortgage payment (as a double) and the amount still owed - the outstanding balance - on the mortgage (also as a double) and then displays the amount of the payment that goes towards interest and the amount that goes towards principal (e.g. the amount that goes towards reducing the debt).

Assume that the annual interest rate is 4% (which is the current rate). Be sure to use a named constant for this interest rate.

Note that mortgage payments are made monthly, so be sure to divide the annual rate by 12 when calculating the amount of the mortgage payment that goes towards interest.

Here is a sample transaction with the user:

Please enter your mortgage payment: $2500.00

Please enter ourstanding balance or mortgage: $450000.00

Of your $2,500.00 mortgage payment:

$1,500.00 goes to interest

$1,000.00 goes to principal

calculation: 450000 * 0.04 / 12 = 1500

Reference no: EM132200993

Questions Cloud

What is the maximum change in the money supply : Suppose John deposits 20 million into his checking account, if the reserve requirement ratio is .1, what is the maximum change in the money supply?
Create a method that receives a string of plaintext : Write a java program that takes an input string from ‘a' to ‘z' or ‘A' to ‘Z' and transforms it to integers from 0 to 25.
What is meant by the globalization of markets : What is meant by the 'Globalization of Markets, provide example derives from telecommunication industry
What is the probability of a type i error : The decision rule is adopted to shut down the filling machine if the sample mean weight for a sample of 40 bags is below 49.7.
Calculate the amount of the mortgage payment : Write a Java program that reads the amount of a mortgage payment and the amount still owed - the outstanding balance.
What is the empirical relevance of the h-o theory : What is the empirical relevance of the H-O theory and the new trade theories? What is the relationship between transportation costs and nontraded
March treasury bond futures settlement : On March 16, the March Treasury bond futures settlement price was 101 21/32. Assume that the 12 1/2 percent bond maturing in about 22 years
Display the largest and smallest numbers entered : Write a java program with a loop that lets the user enter a series of positive integers. The user should enter any negative value to signal the end of the serie
What price will canadian seller receive after tax is imposed : The United States and Canada are in trade dispute over the importation of steel from Canada. Assume President Trump has imposed a tax (tariff) of $30 per unit.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write an application that presents three buttons and a label

Write an application that presents three buttons and a label. Label the buttons Add, Subtract and Multiply respectively. Display a numeric value (initially 1).

  What are 2 applications that would be candidates for

What are 2 applications that would be candidates for that, and illustrate strategies/methodologies to accomplish that.

  Prepare the program also consider a class engineer

Consider a class "engineer" that has three attributes: name, rank, salary. Prepare the program.

  Write one exception class that includes multiple exceptions

How would you write one exception class that includes multiple exceptions, for example, if a file is not found and if an array is not dynamically allocated properly. (C++)

  Can a relation be stored as a sequential file

How various times should a user be allowed to mistype a password before the conversation is terminated.

  Create a application that allows customers to book table

Compare and contrast two life cycle models that could be used to complete the project on time, within budget, and with minimal defects.

  Write a method public static array list merge

Write a method public static Array List merge(Array List a, Array List b) that merges two array lists, alternating elements from both array lists.

  Write an sattributed syntax directed translation for boolean

Implement a lexical analyzer (use Lex or write it by hand) and a recursive-descent translator based on the above translation.

  How many pieces of candy was just sold and what type

A good friend of yours is managing a fund raiser for a football team. He needs a program to calculate the total amount of candy sold at a football game.

  Difference between mealy and moore state machine

Given the following FIFO and rules, how deep does the FIFO need to be to prevent underflow or overflow?

  What can you say about the relationships of given classes

Look at code below. You have four classes (O, X, T, and M). What can you say about the relationships of these classes? Draw a class diagram.

  Visit a businesss online web presence construct a list of

visit a businesss online web presence. construct a list of complex data types that would be needed to store all the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd