average : Java Glossary


You might think about the simplest coding task in the world would be to compute the average of two positive integers, rounded The catch is as you can see from the program, some very simple code to compute the avarage sometimes fails.


Mathematicians have come up with a number of ways of computing the average of a list of numbers besides adding them up and dividing by the number of elements. Here is code to compute some of the variants:

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products

Your face IP:[]
You are visitor number