By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,554 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,554 IT Pros & Developers. It's quick & easy.

Grading Students Scores

P: 32
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
Share this Question
Share on Google+
3 Replies


LacrosseB0ss
100+
P: 113
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 100+
P: 1,754
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

P: 2
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.