Question: * Mease use Netbeans/ Java thenk yuul. Write a class encapsulating the concept of an investment, assuming the investment has the following attributes: the amount

 * Mease use Netbeans/ Java thenk yuul. Write a class encapsulatingthe concept of an investment, assuming the investment has the following attributes:

* Mease use Netbeans/ Java thenk yuul. Write a class encapsulating the concept of an investment, assuming the investment has the following attributes: the amount of the investment (p) and the interest rate (r) at which the investment will be compounded. 1. Write an Investment class including constructor, the accessors (getters) and mutators (setters), and the tostring method. 2. Assuming that the interest rate is compounded quarterly, write a method in the Investment class returning the future value of the investment depending on how many quarters we hold it before selling it, which can be calculated using the formula: p=p(1+r)n, where n= number of periods (period = quarter). 3. Also write a Main class that does the following: a) Prompt the user to Enter Principal Amount; and take the input. b) Prompt the user to Enter Quarterly Interest Rate: and take the input. c) Prompt the user to Enter \# of Quarters; and take the input. d) Print the future value of the investment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!