Skip to content
Need help with a simple Java programming question
Profile icon
mnp

I added a picture of it. I'm mostly unsure about how to count the data in each.
This file cannot be displayed: https://storage.googleapis.com/replit/images/1535413863436_ee6c82f331b76326cd66ae90e0d7aff4.pn

You are viewing a single comment. View All
Profile icon
JoshDaBosh

for the first method: you could get the average of the data elements by summing them and dividing by the amount of objects in the set. then find the outlier numbers by iterating through the data elements and seeing if they are either less than 68% of the average or greater than 168% of the average.