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 email@example.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  = F (all grades less than 60)
index = D (all grades less than 70)
index =C (all grades less than 80)
index=B (all grades less than 90)
index=A (all grades less than 100)
index=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)]
populate array with grades and sort into index (indices?)
Post a Reply
|Oldest Newest Rating|
· 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.
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|