book cover
book cover

Programming Projects

Maths: Arithmetic

maintained by Francis Glassborow

  Home     

Means [15A]

Contributed by Francis Glassborow

When people speak of 'the mean' they are usually referring to an 'arithmetic mean' or what is often colloquially called an average. There are quite a few other means used in mathematics. Perhaps the best know ones are the 'Harmonic Mean' and the 'Geometric Mean'. Statisticians will also know of the 'Root Mean Square'.

Actually there are many other means that have been invented. If you go here you will find pointers to over a dozen different means.

Write a suite of functions to implement as many different means as you can. Now write a menu driven program to allow the user to input a set of values and select which mean they want evaluated.

Program elements

Not a lot. The initial focus of this project is simple arithmetic evaluation in the language of your choice. The final stages require you deal with input of a set of values and production of a menu.


  Home      Arithmetic      Maths      You Can Do It!