PLEASE HELP!

Hi there,

Can someone explain a few things for me:

1. What is an arbitrary sequence?

2. How would I calculate the average of an arbitrary sequence?

3. How would I use a value (for example, -1) to indicate the end of an arbitrary sequence?

Thanks in advance
Maybe means any sequence you choose, easier the better to start with, like 1,2,3,4,5... +1 every time.

http://www.regentsprep.org/regents/math/algtrig/atp2/arithseq.htm
How could I write a program that would calculate the average of the series 5, 0, -5, 14, 27, 18, 1803, -333, for example.
average as in sum and divide?

To end the sequence you could use if statement.
Last edited on
Topic archived. No new replies allowed.