5 Extra Credit Create a class called Limits. In it, write a main method that uses...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5 Extra Credit Create a class called Limits. In it, write a main method that uses definite loops to verify the following statement: For a loan of $10,000 at an annual interest rate of 3%, the limit of the total amount paid as the number of payments approaches infinity is $10,150.75 Output should start like this: # Pmts Total Paid 1 10 10300.0 10165.74 100 ... To accomplish this task, you will need several building blocks: The formula for calculating a loan payment amount is shown below. We would normally round to the nearest penny-you cannot make payments in fractional centsbut leave it at full precision instead P = r(PV) 1-(1+r)-n P = Payment PV Present Value r = rate per period n = number of periods The formula for calculating the total amount paid: TP = P(n) Math.round(number) Round this to the nearest penny before display A Java method that rounds to the nearest integer: Note that there is no second parameter; you will need to get creative A Java method that raises a number to a power: Math.pow(number, exponent) Incrementing your loop variable logarithmically; we want to see the number of payments and the total of payments for 1 payment a year, 10 payments a year, etc., through 1,000,000,000 payments a year (109). 6 Submitting Your Work Submit the .java file(s) from your project in a single submission; there is no need to send other files or zip up the folder. 5 Extra Credit Create a class called Limits. In it, write a main method that uses definite loops to verify the following statement: For a loan of $10,000 at an annual interest rate of 3%, the limit of the total amount paid as the number of payments approaches infinity is $10,150.75 Output should start like this: # Pmts Total Paid 1 10 10300.0 10165.74 100 ... To accomplish this task, you will need several building blocks: The formula for calculating a loan payment amount is shown below. We would normally round to the nearest penny-you cannot make payments in fractional centsbut leave it at full precision instead P = r(PV) 1-(1+r)-n P = Payment PV Present Value r = rate per period n = number of periods The formula for calculating the total amount paid: TP = P(n) Math.round(number) Round this to the nearest penny before display A Java method that rounds to the nearest integer: Note that there is no second parameter; you will need to get creative A Java method that raises a number to a power: Math.pow(number, exponent) Incrementing your loop variable logarithmically; we want to see the number of payments and the total of payments for 1 payment a year, 10 payments a year, etc., through 1,000,000,000 payments a year (109). 6 Submitting Your Work Submit the .java file(s) from your project in a single submission; there is no need to send other files or zip up the folder.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
cck3 java help them all If a processor exhibited one branch delay slot how would you reorder (and possibly modify) the instructions in the following loop to gain a performance advantage? loop ldr...
-
For each problem, show your work steps. A correct answer with no work shown gets half credit (which means you fail the assignment). An incorrect answer with no work receives 0 credit. With time value...
-
Pohle Designs has a department that makes high-quality leather cases for iPads. Consider the following data for a recent month: Budget Formula per Unit Various Levels of Output 10.000 1.000 12000...
-
A geothermal resource exists as saturated liquid at 200oC. The geothermal liquid is withdrawn from a production well at a rate of 200 kg/s, and is flashed to a pressure of 500 kPa by an essentially...
-
Monty Inc. issues 500 shares of $10 par value common stock and 100 shares of $100 par value preferred stock for a lump sum of $109,000. (a) Prepare the journal entry for the issuance when the market...
-
Gavin Jones was mystified by Ito's lemma when he first studied it, so he tested it. He started with \(S\) governed by and found that \(Q=\ln S\) satisfies He then applied Ito's lemma to this last...
-
Maria Garcia is a CPA whose firm has prepared the tax returns of Stanley Corporation for many years. A review of Stanleys last three tax returns by a new staff accountant, who has been assigned to...
-
In addressing the rise in traffic accidents, it becomes crucial to strike a balance between the benefits of motor freight and the need for enhanced safety measures. How can industry stakeholders...
-
Choose a product of your choice with a targeted audience of middle to upper class , some what educated male living in an urban area with at least one child, create a brief marketing pitch trying to...
-
What strategies would need to be incorporated within Blockbuster to promote innovative practices? How will you embed intrapreneurship competency into Blockbuster? How will you identify the...
-
Discuss what management must do to show they are serious about providing a safe and healthy working environment for employees. What role/responsibility does the employee have? If working outside the...
-
How do you keep track of the items you have in your home, such as food, clothing books, tools, etc.? What methods or tools do you use to organize, store, and label your items? How do you decide when...
-
Choose any special event (not a Mega Event) and list its proper event classification, date, and location. It can be a concert, fair, festival, etc. Please keep it somewhere in the USA. Type a short...
-
What are the key architectural principles underlying the implementation of NoSQL databases, and how do they diverge from traditional relational database models in terms of data storage, querying...
-
Select the Company Walmart and write an integrated risk report in which you need to answer the following questions: 1. What is risk? 2. What return would you have earned investing in this companys...
-
A copper sphere of 10-mm diameter, initially at a prescribed elevated temperature T;, is quenched in a saturated (1 atm) water bath. Using the lumped capacitance method, estimate the time for the...
-
1. Describe the bases of power held by Dr. Jamie Thompson. Describe the bases of power held by Dr. Elizabeth Clarke. 2. What activities and people have contributed to Jaime Thompsons power? What...
-
What is the current in the wire in Figure Q22.1? 1.0 VR + 1.0-1.0V + FIGURE Q22.1
-
Electroconvulsive therapy is a last-line treatment for certain mental disorders. In this treatment, an electric current is passed directly through the brain, inducing seizures. The total charge that...
Study smarter with the SolutionInn App