Students ranking based on average mark and failure

Posted on 2005-04-19
Last Modified: 2010-04-17

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?

Question by:efioj
    1 Comment
    LVL 10

    Accepted Solution

    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)
    //PSUEDO CODE!!!!
    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)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    A short article about a problem I had getting the GPS LocationListener working.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now