Warning: Mild Language will be used!
Here's a description of the assignment details:
Write a program to input a number of students, then to input a grade for each student and to count the A's, B's, C's, D's, and F's and display the counts. Initialize 5 variables, for a, b, c, d, and f, all to 0, then use if statements to decide which of the 5 to increment, all in the body of a loop.
The grading scale is:
93-100 A Superior Work
85-92 B Good Work
77-84 C Average Work
70-76 D Needs Improvement
0-69 F Unsatisfactory Work
Here is a sample run:
Enter the number of grades to enter: 10
Enter a grade and press enter: 95
Enter a grade and press enter: 88
Enter a grade and press enter: 84
Enter a grade and press enter: 78
Enter a grade and press enter: 80
Enter a grade and press enter: 86
Enter a grade and press enter: 93
Enter a grade and press enter: 92
Enter a grade and press enter: 55
Enter a grade and press enter: 74
2 A's, 3 B's, 3 C's, 1 D's, and 1 F's.