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

  Is it feasible for an attacker to derive m from h

Suppose h=H(m), where H is a cryptographic hash function. Is it feasible for an attacker to derive m from h?

  How many pins would this chip have

Consider a memory chip with 10 rows, 10 colums, and 8 banks and a 64-bit data bus.Express the capacity in bytes of this chip as a power of 2.

  Write program that implement merge sort for sequential data

Write a program that implements merge sort for sequential data files. Test your program on a file with several thousand data values.

  Identify the actors of the scenario

Suppose the scenario in part a of this question. Identify the actor(s) of the scenario. Next write the corresponding use case SetCalendarEvent. Add all cases, and include setting the actual day and time of your birthday.

  Write variable declarations for the variables pay and score

Write an if - else statement that changes the value of pay by subtracting 10 from pay if score is greater than 50, otherwise it adds 25 to pay. Also write variable declarations for the variables pay and score.

  Write a driver program to test all your methods

Give the definition of a class named Doctor whose objects are records for a clinic's doctors. Write a driver program to test all your methods.

  Discuss the role of standards in wireless networks

Discuss the role of standards in wireless networks. Use technology and information resources to research issues in wireless networks.

  Calculate the values you will have to use linear algebra

To calculate the values, you will have to use linear algebra. For that you can use the python library called numpy

  Give employee''s pay according to that employee''s pay code

A company pay its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the 40 hours they work and "time-and-a-half"- 1.5 times their hourly wage- for overtime hours workers).

  Construct a truth table and find minimized boolean function

Construct a truth table and find the minimized Boolean function to implement the logic telling the CSU staff when to approve. Draw a circuit diagram for the Boolean function.

  Create an organization chart for the millennium wellness

The network will include an online backup service, and Internet access via a broadband connection with a local Internet service provider.

  You are a networking intern at richman investments you

you are a networking intern at richman investments. you recently developed a design for a remote access control policy

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