Just like the title says, i would like to to know the code for adding up values of multiple objects. Bonus point if you can suply me with the code to divide those values by 8.

That question makes no sense. How would you add up the values of multiple URLs, or Booleans, or Employees? You need to provide more info on your "objects".
Asking for code (especially such a totally trivial piece of code) for homework isn't popular behaviour here. Do some work yourself first.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.