Respuesta :
Solution:
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
Answer:
Average time taken to process each line is [tex]3x-12+\frac{50}{(x+4)}[/tex] milliseconds
Step-by-step explanation:
A computer takes [tex]3x^{2}[/tex] + 2 milliseconds to process a certain program.
If the program has 4 lines of static code and x variable lines, then total lines to process will be
⇒ Total lines = (x + 4)
Now average amount of time to process each line = (Total time to process a program) ÷ (Total lines to process)
Average time = [tex]\frac{3x^{2}+2}{x+4}[/tex]
= [tex]3x-12+\frac{50}{(x+4)}[/tex] milliseconds
So the answer is average time taken to process each line will be [tex]3x-12+\frac{50}{(x+4)}[/tex] milliseconds.