jeudi 17 novembre 2016

if statement , loop , array java [on hold]

I think we need to use loop, array, if statement, continue, and break to solve this question

Q1: Develop a program to help a teacher evaluate his class’s grades. It will help him calculate grade statistics and convert the scores to letter grades. Assume each class has a capacity of 25 students. It will repeatedly display a menu until the user decides to exit:

  1. Enter scores: Prompts the teacher to enter the scores of each of his students, should enter -1 when they are done (class might contain less than 25 enrolled students)
  2. Find highest score: Displays the highest earned score to the teacher
  3. Find lowest score: Displays the lowest earned score to the teacher
  4. Calculate average score: Displays the average score to the teacher
  5. Display letter grades: Knowing that:

i. A: 90-100

ii. B: 80-89.99

iii. C: 70-79.99

iv. D: 60-69.99

v. F: below 60

  1. Exit

Aucun commentaire:

Enregistrer un commentaire