Problema Solution

A computer takes 3x^2 + 2 milliseconds to process a certain program. If the program has 4 lines of static code (this will always be required for the code to run) and x variable lines, what is the average amount of time it takes to process each line?

Answer provided by our tutors

Average time per line = total time / total lines


Average time per line = (3x^2 + 2)/(x + 4)


Average time per line = 3x - 12 + (3x^2 + 2)/50 milliseconds