Grades

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

    #1

    Grades

    I need help on this code. I have to write a code that reads in a list of exam scores and outputs the total number of grades and the total number of grades in each letter category. Here is what I got so far.


    //Grades.java Anthony Biddle September 30, 2006
    //Get a list of grades and output the total number of grades and number of grades
    //in each letter category

    public class Grades {

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


    System.out.prin tln("This program will read a list of scores and will output the ");
    System.out.prin tln("total number of grades and number of grades in each letter category");
    //Prompt the user to enter grades on the line
    System.out.prin tln("Enter grades on the line");

    int n1, n2, n3;

    Scanner keyboard = new Scanner(System. in);
    n1 = keyboard.nextIn t();
    n2 = keyboard.nextIn t();
    n3 = keyboard.nextIn t();


    System.out.prin tln("Enter a negative number on the line after all the grades are entered");
    System.out.prin tln("You have entered all the grades");

    System.out.prin tln("The total number of grades are");


    System.out.prin tln("Grades program complete
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by waldoruns
    I need help on this code. I have to write a code that reads in a list of exam scores and outputs the total number of grades and the total number of grades in each letter category. Here is what I got so far.


    //Grades.java Anthony Biddle September 30, 2006
    //Get a list of grades and output the total number of grades and number of grades
    //in each letter category

    public class Grades {

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


    System.out.prin tln("This program will read a list of scores and will output the ");
    System.out.prin tln("total number of grades and number of grades in each letter category");
    //Prompt the user to enter grades on the line
    System.out.prin tln("Enter grades on the line");

    int n1, n2, n3;

    Scanner keyboard = new Scanner(System. in);
    n1 = keyboard.nextIn t();
    n2 = keyboard.nextIn t();
    n3 = keyboard.nextIn t();


    System.out.prin tln("Enter a negative number on the line after all the grades are entered");
    System.out.prin tln("You have entered all the grades");

    System.out.prin tln("The total number of grades are");


    System.out.prin tln("Grades program complete
    Haven't you already asked this question before?

    Comment

    Working...