need help calling methods
//this code should calculate future investment but is not
//it should print years from 1 to 30 and future value
// i'm new in java please help me out.thnks adv
import java.util.Scanner;
public class C5E7{
public static void main(String [] args){
Scanner input = new Scanner(System.in);
//double k = futureInvestementValue( a, b, c, d);
System.out.println(" enter amount invest:");
double investmentAmount = input.nextDouble();
System.out.println(" enter monthly Rate");
double rate = input.nextDouble();
System.out.println("THE AMOUNT INVESTED IS:" + investmentAmount);
System.out.println("THE ANNUAL INTEREST RATE IS:" + rate);
for( int i = 1; i <= 30; ++years)
System.out.println(years + "\t\t" + futureInvestmentValue);
System.out.println("YEARS\t\tFUTURE VALUE");
{
public static double futureInvestmentValue(double investmentAmount, double monthlyInterestRate int years)
{
// double monthlyInterestRate;
result = 0;
// monthlyInterestRate = rate /12;
futureInvestmentValue = investmentAmount * (1+ monthlyInterest)numberOfYears * 12;
years = years + 1;
double result = futureInvestmentValue;
return result;
}