Total interest earned on a financial investment

Assignment Help Business Management
Reference no: EM132292857

Using Java, compile a method named invest that computes and return the total interest earned on a financial investment. Once per year, the bank pays interest to the investor at a given fixed rate. As the investment earns interest, that interest is added to the investment and therefore the interest begins earning interest of its own ("compounding").

Your method should accept three parameters in the main function: the initial amount of the investment in dollars (as a real number such as 1500.0 for $1,500.00), the yearly interest rate (as a real number such as 3.5 for 3.5% interest) and the number of years for which to invest (as an integer such as 6 for 6 years) and then returns the total interest earned (as a real number such as 35.60 for $35.60).

Your method should print the value of the investment after each year. Upon return, your program should print cumulative interest earned over all years in the main function. For example, an investment of $100.00 at 10% interest for 5 years would lead to this call:

// $100.00 at 10% interest for 5 years

double totalInterest = invest(100.00, 10.0, 5);

The call would produce the following console output. Dollar amounts print with 2 digits after the decimal.

Notice that we are not simply adding 10% of $100.00 (or $10.00) each year; that would lead to $50 of total interest earned. The first year adds 10% of $100.00, but the second year adds 10% of $110.00, or $11.00, leading to a total of $121.00. The third year adds 10% of $121.00, or $12.10, leading to a total of $133.10 and so on. The interest is cumulative. You may assume that all parameter values passed are non-negative.

Reference no: EM132292857

Questions Cloud

Analyze organizational culture during substantial business : Speculate on at least two (2) challenges that business leaders might face when diagnosing organizational culture during substantial business transition.
Define managerial issues of a networked organization : Research at least two articles on the topic of managerial issues of a networked organization. Write a brief synthesis and summary of the two articles.
Accessed to find a particular record : On average, how many blocks would have to be accessed to find a particular record?
Key elements of being effective business communicator : One of the key elements of being an effective business communicator is the ability to “see the other side” of any discussion.
Total interest earned on a financial investment : Using Java, compile a method named invest that computes and return the total interest earned on a financial investment.
What is probability and impact : Your project sponsor recommends that you not bother with determining the probability and impact for the risks you have identified.
Primary key as the hash key : Assume the a database file contains 132,000,000 records and is organized as a Hash File with the primary key as the hash key.
What is the sarbanes-oxley act : What are some examples of major ethical breaches in the recent past that have led to increased scrutiny in the field of financial reporting and analysis?
Why is the cloud a hot buzzword : Why is "The Cloud" a hot buzzword? What advantages does it offer? What are some of the challenges faced by Cloud technology and why might it not be the right.

Reviews

Write a Review

Business Management Questions & Answers

  Why is it considered a difficult concept to grasp

List the five approaches that are used to describe values for guiding ethical decision making. Briefly describe each. What is social responsibility? Why is it considered a difficult concept to grasp?

  Find the mean and variance of the distance

Find the mean and variance of the distance between the two break down points.

  Analysis of contemporary issues

Description: Analysis of contemporary issues, opportunities, trends, challenges or innovation in the ICT industry. On the basis of this work the students will create a plan that will outline where they would like to be in five years

  Services for medicaid vs the coverage in private insurance

Do you think there should be a difference in the services for Medicaid vs the coverage in Private insurance, i.e: doctor spending less time

  Particular aspect of the wal-mart supply chain

If you are not aware of a supply chain, then describe how a particular aspect of the Wal-Mart supply chain could be enhanced.

  Describe different style of operation in different countries

Describe the different styles of operation in different countries and can you explain the different styles of operation in different countries?

  Deliberate classen can hold daniel liable as a partner

Daniel is the proprietor of a chain shoe store. He appoints Rubya to be the manager of a new store, which is to exposed in Grand Rapids, Michigan

  Evaluate the business-level strategy of victory cycles

Evaluate the business-level strategy of Victory cycles to determine whether you believe the strategy is appropriate to offset forces in the industry. Provide specific examples to support your response

  Discuss about fundamentals of business process management

The process for handling down payments starts when a request for payment has been approved.

  Why ethics and confidentiality play an integral role

Differences between community setting and correctional setting case management

  Grow to liability for fraud is normally based on a statement

The reliance that gives Rose to liability for fraud is normally based on a statement of

  Daycare industry consolidated

Why hasn't the daycare industry consolidated into a few major chains like the hardware industry and others where a few companies bought up smaller ones

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