Grading Students Scores

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akinyemi
    New Member
    • Sep 2006
    • 32

    #1

    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.
  • LacrosseB0ss
    New Member
    • Oct 2006
    • 112

    #2
    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.

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Originally posted by Akinyemi
      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.

      Comment

      • darklynx489
        New Member
        • Nov 2006
        • 2

        #4
        Originally posted by Akinyemi
        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

        Comment

        Working...