Write in pseudocode the algorithm for determining the average value of an UNSORTED array of numbers, given an array of "a" with number of elements that have a value "length".

Additionally, what is its order in Big-O? If the array of numbers were ordered, can the algorithm change? If so, what is its Big-O?

I guess you're looking for this

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.