467,879 Members | 1,090 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

Grading Students Scores

I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively.

I have been able to get the program to compute the score of each student. I have not been able to grade the highest three scores into First, second and third.

Kindly assist me, please.
Nov 3 '06 #1
  • viewed: 4389
Share:
3 Replies
LacrosseB0ss
100+
how are you saving the grades? if they are in an array, you can use a sorting algorithm to sort them (in any order) and then take the highest 3 and assign your labels to them. Not sure how it would be done without an array however.

This also may not be the most efficient solution out there but it will work. If the data amount is small enough (<100 elements), it may not matter anyway.
Nov 3 '06 #2
sashi
Expert 1GB
I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively.

I have been able to get the program to compute the score of each student. I have not been able to grade the highest three scores into First, second and third.

Kindly assist me, please.
Hi there,

No one will be able to assist you unless u show ur coding segment, think, how to validate the code without seeing the code? take care.
Nov 3 '06 #3
I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively.

I have been able to get the program to compute the score of each student. I have not been able to grade the highest three scores into First, second and third.

Kindly assist me, please.


yes, some sample code would be nice. BUUUUT you should do a loop to test the numbers and find which is the highest and then count down from there 2 places and store those. = D
Nov 7 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by hjc | last post: by
17 posts views Thread by Brian Blais | last post: by
1 post views Thread by wilberato | last post: by
3 posts views Thread by tomshorts07 | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.