Input-Output ] Statistics ] Computations ] Error trapping ] [ Functions ] Strings ] Filing ] Graphing ] Randomizing ] Sorting ]

 

 


Functions and Subroutines

1.  Write a subroutine for input of a two-dimensional array.  Use the grid control to provide a familiar interface. Incorporate data screening and correction.  

2.  Write a general rounding subroutine that prints out a number to a specified number of decimal places.  The arguments to the subroutine will be the number that gets rounded and the desired number of places.

3.  Rather peculiarly, VB has built in the natural logarithmic function as LOG, but has not provided the more commonly used logarithm to the base 10.  Please rectify the situation by creating TENLOG.  Make sure your FUNCTION filters out improper input values.

4.  Wouldn't it be handy to have a FUNCTION that would return the standard deviation of a group of scores?  Oh, yes it would.  If you have forgotten the formula (for shame!), it is: