Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a InvestmentList array that is an array of Investment objects. The Invest

ID: 3529286 • Letter: C

Question

Create a InvestmentList array that is an array of Investment objects. The Investment class has a customer name, an amount, and a rate (a Date is optional and can be done for extra credit). The Investment class should have a parameterized constructor, getters and setter methods for each member variable as well as an output method. The main file should include a binary search method to search for a numeric target and a sequential search method to search for a string target. You will also include an ascending sort method on customer name and a descending sort method on the amount of investment. Be sure the two sort algorithms are different. Add a method to get the average rate of all the interest rates- call it averageRate(). Add another method to calculate the value of an investment after n years (amount * (1.0 + rate)n ). To input the data, the Client program could ask the user to enter a customer, interest rate, and amount of investment for 11 different Investment objects (data given below). Or you may read this data from a file. The Client program should: a. Print the array as entered

Explanation / Answer

//I'm not done yet, but you can look here for what I have so far:

https://www.dropbox.com/sh/ul9i4ivzy76ud6l/p9ZzbtdQKx