# im hoping someone will get this

This is a discussion on im hoping someone will get this within the C Programming forums, part of the General Programming Boards category; im like racking my brains. we have a project and we have to find the area inbetween parabolas y=x^2 and ...

1. ## im hoping someone will get this

im like racking my brains. we have a project and we have to find the area inbetween parabolas y=x^2 and y = (-1)*(x-1)^2 +4 and must use N number of slices inbetween to get near perfect ammount. I have no idea how to even start it really. I just get the idea. have one parabola minus the other to find hte area inbetween or something. Ive been up for over 2 days straight and my brain is just fried. mondo help would be greatly loved.

THIS IS A REQUEST BY MY PROGRMAMING TEACHER, NOT A CALCULUS TEACHER.

2. So get out your calculus book, or just draw a picture.

3. im not in calculus right now, and i have to do a program similar to the other recent thread i posted. im so stumped on how to input it and such.

4. So then draw a picture.

5. dude i know what it looks like, i just dont know how to code it for one minusing hte other. For like the other thread where i did the parabola area at x=4, it does it from 0 to 4. The first x intecept between the 2 is in a negative area, so i have no idea how to move it to there and start at that negative place instead of 0.

6. Rename a copy of your similar program.

Change the math portion of your program. Do any exra input you need, just like it was done before, but use variables matching the needs of your new program.

Debug, test, and serve.

Math programs use similar or even the same, input methods.

7. W8 I JUST HAD A THOUGHT, sparked teeny teeny bit by tabstop. What if i find area from 0 to negative and hten area from 0 to other x interecept thats in positive. do you think that will work? but then after i finish the first part of calculating, how do i keep that sum and add it onto the next part i calculate. Do i save is as another name and hten do another while command and incorporate the name at the end in the total sum?