#cant figure out this question on my assignment+

8 messages · Page 1 of 1 (latest)

rain willowBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

desert vigil
#

do you know how to compute an average?

static rock
#

Here are some hints that should help you:
How do we calculate the average of n numbers?
How can we sum n numbers in C++?
What are 3/2 and 3.0/2 equal to in C++?

crude flower
#

the task explained everything:
you need to make a double TOTAAL (not a int since a int/int becomes a int)
then loop over it and add all numbers to TOTAAL
and after that return TOTAAL/n (het gemiddelde)

wintry pelican
#

@quasi blaze do you still need help

fleet spoke
#

So first of all, are you aware that ypu can access the elements from an array or a pointer in (almost) the exact same way

rain willowBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.

quasi blaze
#

!solved