Saturday, July 25, 2009

Write an equation expressing seconds in terms of loops (8 seconds per 100 loops)?

If a computer has a loop in it, the length of time it takes the computer to run the program varies linearly with the number of times it must go through the loop.





Suppose a computer takes 8 seconds to run a given program when it goes through the loop 100 times, and 62 seconds when it loops 1000 times.





Write the particular equation expressing seconds in terms of loops.





We're currently learning about the slope-intercept form, slope-point form, and standard form and the forms of graphs/linear equations.





I don't really understand how to write an equation for this especially since I can't find a pattern.





Any help is extremely appreciated.





Thank you very much in advance.

Write an equation expressing seconds in terms of loops (8 seconds per 100 loops)?
you have two points: (100, 8) and (1000, 62)





Your slope is (62-8)/(1000-100) = 0.06





Your y-intercept is a in: 8 = a + 0.06(100)





The linear equation is seconds = 2 + 0.06(loops)



skin tags

No comments:

Post a Comment