problem with calculation

public class debgrader

{

public static void main(String[] args )

{

int numberofstudents,score;

double next;

char answer, grade;

do

{

System.out.println("Enter scores for all students");

System.out.println("Enter a negative numger after");

System.out.println("You have entered all the scores.");

numberofstudents = 0;

score = 0;

grade=0;

next = SavitchIn.readLineDouble();

while (next >=0)

{

numberofstudents++;

next = SavitchIn.readLineDouble();

}

if (numberofstudents > 0)

System.out.println("Total number of grades " + (numberofstudents));

{

numberofstudents = grade;

if (score >= 90){

grade ='A';

numberofstudents++;}

else if (score >= 80){

grade ='B';

numberofstudents++;}

else if (score >= 70){

grade ='C';

numberofstudents++;}

else if (score >= 60){

grade ='D';

numberofstudents++;}

else if (score < 60){

grade ='F';

numberofstudents++;}

}

System.out.println("Number of A's = " + (numberofstudents++));

System.out.println("Number of B's = " + (numberofstudents++));

System.out.println("Number of C's = "+ (numberofstudents++));

System.out.println("Number of D's = "+ (numberofstudents++));

System.out.println("Number of F's = "+ (numberofstudents++));

System.out.println("Want to score another exam?");

System.out.println("Enter y for yes or n for no.");

answer = SavitchIn.readLineNonwhiteChar();

}while ((answer == 'y') || (answer == 'Y'));

}

}

will not calculate the right number of letter grades

what am I doing wrong ?

please help Thank you.

[1826 byte] By [del] at [2007-9-30 22:29:38]
# 1
Why are you doing this?numberofstudents = grade;
dubwai at 2007-7-7 12:53:00 > top of Java-index,Core,Core APIs...
# 2
new to java don't quit know what i'm doing yet.
del at 2007-7-7 12:53:00 > top of Java-index,Core,Core APIs...
# 3
i's there any experts that can help me with this it wold be highly needed for a new beginer like me.
del at 2007-7-7 12:53:00 > top of Java-index,Core,Core APIs...
# 4

You were given help in [url http://forum.java.sun.com/thread.jsp?forum=54&thread=571391]your other thread[/url]. Please don't keep asking the same question all over the place when you've already been given help.

If you're not able to use or understand that help, the burden is on you to follow up and ask specific questions about the difficulties you're having.

you: Please help.

others: Here's some help.

you: Plese help.

What are people supposed to say at this point? We can't read your mind.

jverd at 2007-7-7 12:53:00 > top of Java-index,Core,Core APIs...
# 5

> new to java don't quit know what i'm doing yet.

[url=http://java.sun.com/docs/books/tutorial/]The Java™ Tutorial - A practical guide for programmers[/url]

[url=http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/compile.html]Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program[/url]

[url=http://java.sun.com/learning/new2java/index.html]New to Java Center[/url]

[url=http://www.ibiblio.org/obp/thinkCSjav/]How To Think Like A Computer Scientist[/url]

[url=http://chortle.ccsu.ctstateu.edu/CS151/cs151java.html]Introduction to Computer Science using Java[/url]

[url=http://javaalmanac.com/]The Java Developers Almanac 1.4[/url]

[url=http://www.javaranch.com]JavaRanch: a friendly place for Java greenhorns[/url]

[url=http://www.jguru.com]jGuru[/url]

Bruce Eckel's [url=http://mindview.net/Books/DownloadSites]Thinking in Java[/url]

Joshua Bloch's [url=http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]Effective Java[/url]

Bert Bates and Kathy Sierra's [url=http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance]Head First Java[/url]

yawmark at 2007-7-7 12:53:00 > top of Java-index,Core,Core APIs...