FORMULA IS PMT= P(i(1+i)^n/(1+i)^n-1) Instructions: Write a Java program that implements the following tasks: 1. Prompt the
Fantastic news! We've Found the answer you've been seeking!
Question:
FORMULA IS PMT= P(i(1+i)^n/(1+i)^n-1)
Transcribed Image Text:
Instructions: Write a Java program that implements the following tasks: 1. Prompt the user for the following information about a loan: a. Interest Rate b. Loan Amount C. Number of payments 2. Calculate the monthly payment for the loan, using the following formula: Formula for Fixed Loan Repayment PMT == Fixed Principal & Interest Payment Per Period P = initial loan (principal) amount i = interest rate per period n = number of payment periods Note: You will need to use the Math.pow() method to implement this formula. 3. Display a loan summary as illustrated on the sample runs below: Sample program run #1: Enter monthly interest rate: 0.01 Enter loan amount: 10000 Enter number of payments: 36 Loan Summary ============ Loan amount: $10000.0 Monthly interest rate: 0.01 Number of payments: 36 Monthly payment: $332.14309812851167 Amount paid back: $11957. 15153262642 Interest paid: $1957.1515326264198 Sample program run #2: Enter monthly interest rate: Enter loan amount: 5000 Enter number of payments: 24 Loan Summary Loan amount: $5000.0 Monthly interest rate: 0.02 Number of payments: 24 0.02 Monthly payment: $264.3554862662493 Amount paid back: $6344.5316703899825 Interest paid: $1344.5316703899825 Additional Requirements: 1. Program Description: your program must include a brief description of what it does, placed at the top of your code as a comment line. One sentence is usually enough, for example: // This program calculates the area of a circle given a radius entered by the user. 2. Course Coding Conventions. Organizations adopt program coding standards to facilitate code reuse and maintenance. In this course, we will start using these coding conventions: a. Variable names must use camel case; do not use underscore for multi-word variable naming. See this page for details: Camel case - Wikipedia. Example: use loan Amount instead of loan_amount for a variable name. b. Constants naming. use all uppercase letter names, separating words using underscore. Example: use TAX RATE instead of tax rate or tax Rate for a constant name. Instructions: Write a Java program that implements the following tasks: 1. Prompt the user for the following information about a loan: a. Interest Rate b. Loan Amount C. Number of payments 2. Calculate the monthly payment for the loan, using the following formula: Formula for Fixed Loan Repayment PMT == Fixed Principal & Interest Payment Per Period P = initial loan (principal) amount i = interest rate per period n = number of payment periods Note: You will need to use the Math.pow() method to implement this formula. 3. Display a loan summary as illustrated on the sample runs below: Sample program run #1: Enter monthly interest rate: 0.01 Enter loan amount: 10000 Enter number of payments: 36 Loan Summary ============ Loan amount: $10000.0 Monthly interest rate: 0.01 Number of payments: 36 Monthly payment: $332.14309812851167 Amount paid back: $11957. 15153262642 Interest paid: $1957.1515326264198 Sample program run #2: Enter monthly interest rate: Enter loan amount: 5000 Enter number of payments: 24 Loan Summary Loan amount: $5000.0 Monthly interest rate: 0.02 Number of payments: 24 0.02 Monthly payment: $264.3554862662493 Amount paid back: $6344.5316703899825 Interest paid: $1344.5316703899825 Additional Requirements: 1. Program Description: your program must include a brief description of what it does, placed at the top of your code as a comment line. One sentence is usually enough, for example: // This program calculates the area of a circle given a radius entered by the user. 2. Course Coding Conventions. Organizations adopt program coding standards to facilitate code reuse and maintenance. In this course, we will start using these coding conventions: a. Variable names must use camel case; do not use underscore for multi-word variable naming. See this page for details: Camel case - Wikipedia. Example: use loan Amount instead of loan_amount for a variable name. b. Constants naming. use all uppercase letter names, separating words using underscore. Example: use TAX RATE instead of tax rate or tax Rate for a constant name.
Expert Answer:
Answer rating: 100% (QA)
Heres a Java program that implements the tasks you described import javautilScanner public class Loa... View the full answer
Related Book For
Intermediate Algebra
ISBN: 9780134895987
13th Edition
Authors: Margaret Lial, John Hornsby, Terry McGinnis
Posted Date:
Students also viewed these programming questions
-
Overview Cost accounting is used for two main purposes. The first purpose is to determine the actual costs of products, projects, processes, or services so an organization can report correct and...
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Let r and s be solutions to the quadratic equation x 2 b x + c = 0. For n N, define d0 = 0 d1 = r s dn = b dn1 c dn2 (n 2) Prove that dn = r n s n for all n N. [4 marks] (b) Recall that a commutative...
-
This short exercise demonstrates the similarity and the difference between two ways to acquire plant assets. i (Click the icon to view the cases.) Compare the balances in all the accounts after...
-
Dale's employer withheld $9,873.33 in federal taxes last year. His tax is $8,792.75. a. Does Dale get a refund or does he owe the government money? b. What is the difference between Dale's tax and...
-
1. Based on your sense of fair play and justice, does it sound right or sensible to think that one officer, while still employed by her employer, could arrange to recruit all 40 of her coworkers to...
-
Careful scrutiny of accounting records and financial statements can lead to the discovery of fraud or embezzlement. Each of the situations that follows may indicate a breakdown in internal control....
-
Refer to the data in Exercise 4-12. Sinclair Company manufactures a line of lightweight running shoes. CEO Andrew Sinclair estimated that the company would incur $2,500,000 in manufacturing overhead...
-
1. Compute the Maclaurin series (Taylor series with xo = 0) for f (x) = In(x + 1) by directly computing the derivatives (the direct method)
-
"Don't join a start-up for the money [laughter]. I've seen people that have come here with the kind of like that Gold Rush mentality. Hooah, I'm going to get here, I'm going to strike it rich, and...
-
The dehydration of ethanol results in the formation of Options: 1) Methane 2) Ethane 3) Ethene 4) Butyne
-
The fundamental objective of procurement and supply is to add value to the organization .Assuming you have been employed at Mulungushi University as a purchasing manager, how would you go about...
-
Jill is driving her car along the Warrego highway. At midday precisely she passes a speed camera, travelling at 99 km/hr. At 12:10 precisely she passes another speed camera. At this time she is 20 km...
-
I can buy a $2,000 bond for $150. I get $80 a year and it matures in 20 years. Find the YTM (interest rate).
-
A company's segment reports the following $124,500 loss. Its variable costs of $415,000 are all avoidable. However, only $624,000 of Its fixed costs are avoidable. Segment Income (Loss) Sales...
-
One of our clients has come to you for guidance on financial matter. He is selling his business and needs help in understanding the purchase options being offered by a prospective purchaser. The...
-
Ruiz Company issued bonds on January 1 and has provided the relevant information.The Controller has asked you to calculate the bond selling price given two different market interest rates, using...
-
Eleni Cabinet Company sold 2,200 cabinets during 2011 at $160 per cabinet. Its beginning inventory on January 1 was 130 cabinets at $56. Purchases made during the year were as follows: February . 225...
-
Rationalize each denominator. Assume that all variables represent positive real numbers and that no denominators are 0. 3 4+ 5
-
Use the graph at the right to predict the value of (t) for the given value of t. t = 60 f(t) 24 16 80 0 5... H CO .... LO THE ....60 -t
-
The movie Transformers: The Last Knight in DVD was on sale for $16.17. The list price (full price) of this disc was $17.99. To the nearest tenth, what was the percent discount?
-
The foreign project's cash flows have to be converted to U. S. dollars, since the shareholders of the U. S. corporation (assuming they are mainly U. S. residents) are interested in dollar returns....
-
Purchasing power parity assumes there are neither transaction costs nor regulations which limit the ability to buy and sell goods across different countries. In many cases, these assumptions are...
-
a. Our suppliers switch from delivering by train to air freight. b. We change from producing just in time to meet seasonal sales to steady, year-round production. c. Competition in the markets in...
Study smarter with the SolutionInn App