Welcome to Phrogram Sign in | Join | Help


Re: finding the average

  •  03-24-2008, 6:36 PM

    Re: finding the average

    Attachment: CountAndAverage.zip

    I went ahead and moved this thread to Beginner's Corner. Thanks for the pointer, Srjek.

    Of course, it is possible to get an average without having a built-in average method. A while ago, I was playing around with a program called CountFour and got some help from ZMan and LFS to improve my very rudimentary first stab on how to count up 4 numbers, and tell how many positive numbers were input, how many negative numbers were input, and their totals.

    Well, here's another variation of that program called CountAndAverage. The number of inputs is up to the user. The program spits out the same info as was in the CountFour program, as well as the average of all the inputs.
     

    Filed under: ,
View Complete Thread