Sign in with
Sign up | Sign in
Your question

Java Programming...Please Help!

Last response: in Applications
Share
November 13, 2007 10:13:46 PM

Hello all,
does anyone know java programming pretty well? I am using Jbuilder3.
I have a program that I need to write that I am not exactly sure how to do.
The user has to enter exam scores (78, 88, 54, etc.) and the program has to take the average and also display the number of A's, B's, C's etc. based on the scores entered.
The program has to display a menu with choices:
1. Total number of each letter grade
2. Average score
3. Exit

I can post more information if anyone can please help. Thanks

More about : java programming

April 24, 2008 7:45:35 AM

seems like homework ,anyway take the scores to an array . Cerate a static variable and keep adding on the array elements to it and divide it but the number of elements. to get the average.

To get the number of A`s B's First create three variables to hold the values of the number of each grade then Use a if condition to compare the marks , If condition true then add to a each variable . etc

static int a,b,c = 0;
for (int x=0 ; x<scores.size();x++ ){
If (scores[x] > 75 ){

a++

}
}
!