Homework Help

What is X and N? input 1,2,3,4,n output 4,2,0,-2,x

user profile pic

homer-simpson | Student, Grade 9 | Honors

Posted November 7, 2011 at 10:18 PM via web

dislike 0 like

What is X and N? input 1,2,3,4,n output 4,2,0,-2,x

1 Answer | Add Yours

user profile pic

samhouston | Middle School Teacher | (Level 1) Associate Educator

Posted November 7, 2011 at 11:43 PM (Answer #1)

dislike 1 like

The points are (1, 4), (2, 2), (3, 0), and (4, -2).  Select two points to calculate the slope.

point 1:  (1, 4)     point 2:  (2, 2)

slope = (y2-y1)/(x2-x1) = (4-2)/(1-2) = 2/-1 = -2

Now write an equation in slope-intercept form:  y = mx + b

Use one of the points (1, 4) and m = -2

y = mx + b

4 = -2 * 1 + b

4 = -2 + b

6 = b

Now substitute the values for m and b.

y = -2x + 6

Therefore, if the input is "n", the output is...

-2n + 6

Join to answer this question

Join a community of thousands of dedicated teachers and students.

Join eNotes