I'm sorry. These question probably sound very stupid to you people. But to me they are extremely difficult.

Imagine being completely ignorant with computers, and signing up for an intermediate level class (I did not take the beginner class)................ and NEEDING an A to make up for the 2 B's I got last semester!!

Lots of pressure (and I haven't even mentioned the worst part).

In any case........ I need help. I appreciate those who stop to help. Thank you.

This one I cannot figure out, despite adequate math skills. If it were JUST math I could probably work something out......... but it's not.

NOTE---- I am honest. I DO NOT want to copy anyone's code.... I just want help making ny own.

The objective is to use a "getseries" function. But you have to actually MAKE this function, right? I looked in my book and it is nowhere to be found.

How on Earth do I make the function??

I got it to where there are no errors... defined it, or whatever, to where it CAN work. But I don't know how to get it TO work.

What is has to do is this:

The user enters a number.

My function is called. It runs through to look for consecutive groups of numbers that add up to the input number.

Like if the user inputs 18....

The program finds that 3+4+5+6 = 18

Since 3 and 6 are the first and last #s in the sequence, it then prints 3 and 6

(plus it also does this for any other consectutive groupings that add to 18)

I thought of a while function

A = 1

B = (A + 1)

C = (A + 2)

D = (A + 3)

(while the total is less than input) run through a loop...

if A + B + C + D = 18....

Then increase A each time.

Problems with this---

1) What if it's a sequence of 3 numbers (not 4)? How do I tell the computer to stop at 3, and it's still good?

Maybe just use A?

A = 1

(IF A + (A+1) = 18....)

Else if A+(A+1)..... and on...

A++ each time through the loop?

How would I tell the computer to print A and the hard part---- whatever value (A + 1)etc is at that time?

Would this work?

Any other ideas??