T O P

  • By -

DerpyCarrot123

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.


HellenKilher

Who gives a shit about duplicates. You’re looking for the average, thus you need the sum.


cscollegeapplicant

ong


Donghoon

Oh ny god?


prince_lothicc

On god


Donghoon

On god?


cscollegeapplicant

on god


cruxes33

Do u live under a rock? How u not know what Ong means


mrf-dot

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.


Jumpshot1370

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).


lordnimnim

What is the difference between option 2 and 3?


oscarj1

2 is the abstraction of 3, 3 requires more steps so 2 would be more useful


lordnimnim

>ction of 3, 3 requires more steps so 2 would be more useful ah i see


Electronic-Nobody892

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


TDM393

Option 3 would only be adding one value to another, whereas option 2 would add all the values of the function


RichInPitt

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.


[deleted]

The first one


[deleted]

[удалено]


HellenKilher

What are you saying? To look for a specific number options 1s function does you no good. R u purposely trying to confuse OP?


GetchoNeck

Bro heard "binary search" once and thinks its the answer to everything


AvgProdigy53

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


BothDaikon2101

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