test scores

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waldoruns
    New Member
    • Oct 2006
    • 4

    #1

    test scores

    I need help to finish this code.....Here is what I got so far......




    /Read in test scores and output total number of scores, total number of each letter grade,
    //percentage of total for each letter grade, range of scores from lowest and highest, and the
    //average score.

    public class TestScores {

    /**
    * @param args
    */
    public static void main(String[] args) {
    // TODO Auto-generated method stub

    }

    }
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by waldoruns
    I need help to finish this code.....Here is what I got so far......




    /Read in test scores and output total number of scores, total number of each letter grade,
    //percentage of total for each letter grade, range of scores from lowest and highest, and the
    //average score.

    public class TestScores {

    /**
    * @param args
    */
    public static void main(String[] args) {
    // TODO Auto-generated method stub

    }

    }
    Now let's be honest here, you have'nt done much so far except type in the name of the class. That won't get you very far.
    Do it step by step and post for more specific problems. I would start by writting the method for reading in the test scores. Store the test scores in an ArrayList of integers or double if half marks are permitted.

    Then the method

    Code:
    public void readTestScores() {
    }
    Would read the scores into the ArrayList.
    Once you have the data in the list, manipulating it is then quite straight-forward

    Comment

    Working...