Write a class program named Fixedlnvestment that contains:
A double data field named depositAmount that specifies the investment amount (default 200). A double data field named annuallnterestRate that specifies the fixed interest rate (default 5.0%) An int
data field named numberOfYears that specifies the investment duration (default 1) A no-arg constructor that set the default values for the data fields A constructor with parameters that set certain
value for the data fields The accessor methods for depositAmount, numberOfYears and annuallnterestRate A method named getTotalRetum() that returns the investment return after the specified number
of years. The total return can be computed using
the following formula: totalReturn= investmentAmount x annuallnterestRate x numberOfYears • A toString() method to display the value of all the data fields in the class
Then, write a program that has the main() method to test the object of the above class with a deposit amount of 10000 and an annual interest rate of 4.5% for three years. Display the total return
after three years.

The question was first posted at Write My Essay
Is this question part of your Assignment?
We can help
Our aim is to help you get A+ grades on your Coursework.
We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals
Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples