A group of five students earned the following grades: Student 1, A; student 2, C; student 3,B;

Question:

A group of five students earned the following grades: Student 1, ‘A’; student 2, ‘C’; student 3,‘B’; student 4, ‘A’and student 5, ‘B’. Write an application that reads a series of pairs of numbers as follows:

a) Student name 

b) Student letter grade.

Your program should use a switch statement to determine how many students got a grade of ‘A’, how many got a grade of ‘B’, how many got a grade of ‘C’, and how many got a grade of ‘D’. Use a loop as needed to input the five student grades, and then finally display the results.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java How To Program Late Objects Version

ISBN: 9780136123712

8th Edition

Authors: Paul Deitel, Deitel & Associates

Question Posted: