[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

Students ranking based on average mark and failure


I have students which are taking 9 subjects. The basic courses are only five. Based on the average values of five courses, the student assign their rank. In this case, if a student fails in one course but has highesdt average, then s.he will not award the first rank rather consider after those who are not failed in any course. Then the category cosider first those who have not failed, second those who have failed by one course and so on. Within the category then the highest average value will award the first, second and so on.

How can I do programming in visaul basic? Of course it is using array. Would you pls help me in this regard?

1 Solution
Andrew BeersCommented:
VB wouldn't be your best language... You would want to try to hit Java to make a student object.

(VB would have the same idea implimented differently)
class Student{
   vector classes;
   float getAvg()...
   boolean didFail()...

class Classes{
   float grade;
   boolean checkPassing()...

Everything else is common sense... first call if(didFail){//Do not consider that student unless all other students passed.)else{//consider avg push Student onto stack for comparison after loop exits.}


It is a general quick and dirty over view... let me know if you need any further theory help...
If you still insist on doing this in VB you are going to want to go buy VB in a nutshell by O'Reily and look into how to do this with VB and VB's odd way of doing things.

(I know VB but I have to get my source refrence out because it isn't my best or regular lang. and your question should be worth >125)

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now