public double computePayment(double loanAmt,
double rate,
double futureValue,
int numPeriods) {
double interest = rate / 100.0;
double partial1 = Math.pow((1 + interest),
- numPeriods);
double denominator = (1 - partial1) / interest;
double answer = (-loanAmt / denominator)
- ((futureValue * partial1) / denominator);
return answer;
}
I am a beginner at Java and had a question about parameters. What exactly are they? I thought they were the variables used in the method, but now I see other variables like interest and partial1 being used in the method. These variables are derived from the parameter variables but still, what are parameters?
Thanks in advance.