Guaranteed Hits to your web site!












Learn Visual Basic 6.0


2. The Visual Basic Language


Exercise 2-1: Computing a Mean and Standard Deviation

  1. Develop an application that allows the user to input a sequence of numbers. When done inputting the numbers, the program should compute the mean of that sequence and the standard deviation. If N numbers are input, with the ith number represented by xi, the formula for the mean ( ) is:
    and to compute the standard deviation (s), take the square root of this equation:
    The Greek sigmas in the above equations simply indicate that you add up all the corresponding elements next to the sigma.

    My Solution:

    Form:


    Standard Deviation



    Properties:
    Code:


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1