Question: Write a program that lets a teacher convert exam grades for his / her class from scores to letter - grades, then calculate how many
Write a program that lets a teacher convert exam grades for hisher class from scores to lettergrades, then calculate how many grades are in each lettergrade category.
The program first gets a list of integers from input. The input begins with an integer indicating the number of grades integers that follow. As you read each integer representing a grade, transform it into a lettergrade, based on the grading scale below, and update a counter variable for that lettergrade. For example, if you read in an that number is transformed into a B based on the grading scale, and the counter for how many lettergrade Bs should be incremented. Hint: you can have a different variable for each lettergrade counter.
Grading scale:
to both inclusive A
to both inclusive B
to both inclusive C
to both inclusive D
to both inclusive F
Print the numbers of As Bs Cs Ds and Fs For example, if the input is:
where the indicates that there are nine grades to read, namely Then the output from the program should be:
The distribution of letter grades is: As Bs Cs Ds Fs
Rubric:
Reading all input, and printing the "The distribution of letter grades is: message, without the actual counts p
Keeping count for each lettergrade p and printing the statistics p Note: keeping count by itself without printing the statistics is not graded automatically. Total: p
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
