Welcome to Dream.In.Code
Become a VB Expert!

Join 137,262 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,518 people online right now. Registration is fast and FREE... Join Now!




Help with Arrays Needed

 
Reply to this topicStart new topic

Help with Arrays Needed

Homeless
3 Dec, 2006 - 07:59 AM
Post #1

New D.I.C Head
*

Joined: 3 Dec, 2006
Posts: 2


My Contributions
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 IPB Image M + 1.5s is an A
m+.5s IPB Image ES < m+1.5s is a B
m-.5s IPB Image ES < m+.5s is a C
m-1.5s ES IPB Image 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
User is offlineProfile CardPM
+Quote Post

demonzrulaz
RE: Help With Arrays Needed
3 Dec, 2006 - 03:08 PM
Post #2

New D.I.C Head
*

Joined: 30 Sep, 2006
Posts: 8


My Contributions
I can't do the whole thing for you but I can help. You will need an array to hold the variables. You can then find the mean by using a for loop to add then divide by the number of grades. You can also use a for loop to find the standard deviation.

PS - What course are you taking? I think I am taking the same course...
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Help With Arrays Needed
3 Dec, 2006 - 04:47 PM
Post #3

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,230



Thanked: 40 times
Dream Kudos: 25
My Contributions
The site has a policy by which we prefer to see a good faith effort on the part if the user before source code is provided for academic assignments. If you could post the code you've written so far, our members would be pleased to provide some guidance.
User is offlineProfile CardPM
+Quote Post

Homeless
RE: Help With Arrays Needed
3 Dec, 2006 - 05:53 PM
Post #4

New D.I.C Head
*

Joined: 3 Dec, 2006
Posts: 2


My Contributions
QUOTE(Amadeus @ 3 Dec, 2006 - 05:47 PM) *

The site has a policy by which we prefer to see a good faith effort on the part if the user before source code is provided for academic assignments. If you could post the code you've written so far, our members would be pleased to provide some guidance.


Well, I'm really kind of stuck as I missed the lecture going over this material and am lost as to where to begin. I'd go to the instructor but I have no means of seeing him again until Tuesday when the assignment is due. The assignment is critical to passing the class, so I need to complete it by any means necessary. Learning the material is paramount, but so is passing the class.
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Help With Arrays Needed
4 Dec, 2006 - 11:43 AM
Post #5

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
Then you'ld better get in gear, you should at least have created a form with input and output boxes, etc. If you post the part you have already worked out we will assist you with the details, BUT YOU MUST POST SOME CODE showing what you are triing to do and how. Computer Programming is an Art Form, we can point out errors, but you must be the creator.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 07:01PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month