Jump to content

Welcome to Geeks to Go - Register now for FREE

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
Photo

need help


  • Please log in to reply

#1
BTPH

BTPH

    Member

  • Member
  • PipPipPip
  • 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

Advertisements


#2
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 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 :tazz:

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


Stu Design
  • 0

#3
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 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

BTPH

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 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

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP