Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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