populate array with grades and sort into index (indices?)

0 martin m. gonzales · July 24, 2015
Dear Tutor

I combine this lesson with later ones on Arrays.

Please make a coding tutorial and/or first send me the code for an idea about the grades sorted into an array. 
Scanner input number of students and grades
grades populate array and are sorted by letter grade as below.
PLEASE HELP WITH THE CODE FOR THIS PROGRAM ; 
please send code to mmichaelgee@gmail.com

1.  user inputs Number of Students
2. user inputs the grades 1 at a time
3. the array becomes populated with the grades
4. each index corresponds to a letterGrade
index [0] = F (all grades less than 60)
index [1]= D (all grades less than 70)
index [2]=C (all grades less than 80)
index[3]=B (all grades less than 90)
index[4]=A (all grades less than 100)
index[5]=A+ (all grades of 100)

THANK YOU 4UR HELP (i have been trying even using the idea from lesson on array[random number generator (6)]

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · July 27, 2015
Simplest solution: Keep track of the minimum grade entered for each student. By default, minimum should be 100. Then increment the slot that it corresponds to. 

I think you need a Scanner for receiving user input.

Just use conditional statements for determining the classification of each student.
  • 1

Java / Android Development

107,090 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator