Question: Java program: Create a class that represent a CD(certificate of deposit). Every CD will have an investment balance which the user will be allowed to
Java program: Create a class that represent a CD(certificate of deposit). Every CD will have an investment balance which the user will be allowed to input and an interest rate value that is constant at an 8% annual rate(this is the same for all CD objects). You will need methods that calculate your yearly return on your investment(i.e interest earned) and a method that updates your investment amount accordingly after each year. Also, provide a method that will allow you access to your investment balance . Lastly, include a useful toString method .Create a tester program that demonstrates the class works by creating one CD object and calculating the value of the investment after year one, two and three. Print all necessary information in the proper format.(Please provide separate CD class and tester class)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
