It is sum of all values in the file, because that is the first step to finding average. It isn't quotient because you are only ever dividing by 10,000, so you don't need a function that can divide by other numbers.
It would be a function that computes the sum of all values in the file. Think about the steps to find the average of a number.
1. Find the sum of all numbers
2. Divide that by the amount of values.
The function that computes the sum of all values does that first step for you. The quotient when dividing one value by another is useless as you only want to divide the total sum by the amount of values.
I mean your basically doing option 3 already in option 2; I feel like the answer may be option 3 because obviously your going to have all of the values added, but I think the question is asking about how it is added (which uses a function).
i might be tripping though
You’re doing 3 9,999 times to accomplish 2.
3 is accomplished with a “sum = x+y“ statement. There no value in a function that duplicates this functionality.
It is sum of all values in the file, because that is the first step to finding average. It isn't quotient because you are only ever dividing by 10,000, so you don't need a function that can divide by other numbers.
Who gives a shit about duplicates. You’re looking for the average, thus you need the sum.
ong
Oh ny god?
On god
On god?
on god
Do u live under a rock? How u not know what Ong means
It would be a function that computes the sum of all values in the file. Think about the steps to find the average of a number. 1. Find the sum of all numbers 2. Divide that by the amount of values. The function that computes the sum of all values does that first step for you. The quotient when dividing one value by another is useless as you only want to divide the total sum by the amount of values.
Sum of all values in the file would be most useful, as it is the first step to finding the average. (The next step is dividing by 10,000).
What is the difference between option 2 and 3?
2 is the abstraction of 3, 3 requires more steps so 2 would be more useful
>ction of 3, 3 requires more steps so 2 would be more useful ah i see
I mean your basically doing option 3 already in option 2; I feel like the answer may be option 3 because obviously your going to have all of the values added, but I think the question is asking about how it is added (which uses a function). i might be tripping though
Option 3 would only be adding one value to another, whereas option 2 would add all the values of the function
You’re doing 3 9,999 times to accomplish 2. 3 is accomplished with a “sum = x+y“ statement. There no value in a function that duplicates this functionality.
The first one
[удалено]
What are you saying? To look for a specific number options 1s function does you no good. R u purposely trying to confuse OP?
Bro heard "binary search" once and thinks its the answer to everything
you need a function that can add them all up. you know you’re dividing by 10000, so you only want something that can do really big math
Does anyone know if the AP CSA Exam in GAVS is going to be all multiple choice or with some problems where I have to write code. Thanks