Here is a problem for an intro to VB course that I am having a ton of trouble with. I've done a good amount of searching and cannot seem to figure this out. If I could see the final code for this I could work my way backwards and grasp the concept. If any of you VB gurus out there could provide me the code to dissect I would be extremely grateful. the left alignment of this forum has messed up some of my equations, but I think it should still make sense. Just ask if clarification is needed.
Thanks in advance for any help provided!
Statisticians use the concepts of mean and standard deviation to describe a collection of data. the mean is the average value of items, and the standard deviation measures the spread or dispersal of the numbers about the mean. formally, if x1, x2, x3,...,Xn, is a collection of data, then
mean = m = x1+x2+x3+...+Xn
--------------------
N
standard deviation =
S = /===========================
/ (x1-m)2 + (x2-m)2 + (x3-m)2+...+(Xnm)2
--------------------------------------------------
n-1
Write a program to:
A) Place the exam scores 59,60,65,75,56,90,66,62,98,72,95,71,63,77,65,77,65,50,85 and 62 into an array;
B ) Calculate the mean and standard deviation of the exam scores;
C) Assign letter grades to each exam score, ES, as follows:
ES

M + 1.5s is an A
m+.5s

ES < m+1.5s is a B
m-.5s

ES < m+.5s is a C
m-1.5s ES

m-.5s is a D
ES < m-1.5s is an F
For instance, if M were 70 and S were 12, then grades of 88 or above would receive A's, grades between 76 and 87 would receive B's, and so on. A process of this type is referred to as curving grades.
D) Display a list of exam scores along with their corresponding grades
This post has been edited by Homeless: 3 Dec, 2006 - 08:03 AM