menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
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
asked
Nov 19, 2018
99.5k
views
2
votes
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?
Mathematics
high-school
Alexnnd
asked
by
Alexnnd
6.3k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
The average time taken to process each line can be calculated as follows:
average time = total time / number of lines
For this program:
the total time = 3x^2 + 2 milliseconds
number of lines = 4 + x
(4 static lines and x variable lines)
Therefore:
average time for each line = (3x^2 + 2) / (x + 4) milliseconds
Jaycyborg
answered
Nov 25, 2018
by
Jaycyborg
6.5k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
7.2m
questions
9.6m
answers
Other Questions
How do you estimate of 4 5/8 X 1/3
Please solve the following equation. x-6x=56
whats the most accurate estimation of 65+77
Find the additive inverse of 18/23
What is 25% of 500.00
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org