Hi there! I am stuck on a study guide problem for class...
a. Write a code that is written inside a body of a method named average that takes two parameters: N that determines number of terms
you should calculate the average of and lowBound that is the beginning term of the geometric sequence. if lowBound is 4 and N is 3, then the average of 4, 8, 16 is calculated and returned.
My code runs fine if I set the
test as 16, but I can't figure out what I could do to N to have it determine the number of terms. This is what I have so far...
Any help would be appreciated.