Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

# need help

### #1 BTPH Posted 06 May 2005 - 07:43 PM

BTPH

Member

• Member
• 167 posts
theyve given me a list of 20 numbers
0, 0, 5, 9, 44, 45, 46, 50, 50, 55, 62, 66, 73, 76, 77, 78, 80, 82, 84, 94
these numbers represent marks students got on tests, they have then given me 5 different categories, N wich is makrs between 0 and 49, P 50 to 59, C 60 to 69, D 70 to 79 and HD 80 to 100

im supposed to make a program that calculates the count (which basically counts how many items in each categorey, or in more then one category depending on what has been selected), the Sum, the Mean and finally (the thing i hate most) standard deviation.

now ive done everything except the latter, can anyone tell me if there is either a formula that automatically works standard deviation or how i can work out the square root of a number in vb.net (without using a function coz ill need to work out the square root within an if statement and apparently you cant use functions in an if statement)

Edited by BTPH, 06 May 2005 - 10:58 PM.

• 0

### #2 stu_design Posted 09 May 2005 - 10:59 AM

stu_design

Member

• Member
• 217 posts
take a look here
all you had to do is go to google and type in standard deviation in vb
sorry for being such a noob

http://www.freevbcod...wCode.Asp?ID=15

Stu Design
• 0

### #3 stu_design Posted 09 May 2005 - 11:00 AM

stu_design

Member

• Member
• 217 posts
sorry for being so forward

****************
caution: the code will not work unless ur numbers are in an array
*******************************

Stu Design

Edited by stu_design, 09 May 2005 - 11:02 AM.

• 0

### #4 BTPH Posted 09 May 2005 - 05:00 PM

BTPH

Member

• Topic Starter
• Member
• 167 posts
thanks for the help, an no worries, u can be as forward as u like id ont mind
• 0

### Similar Topics

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users