Curve Grades -The “Scores.txt” file contains the
numeric scores earned by students on an exam. Write a program to determine the
letter grades for the exam. The professor uses a curved grading scale to assign
letter grades. The following table illustrates how the professor creates the
curve for the letter grades.
Your program should do the following:
• Read the “Scores.txt” file
• Calculate descriptive statistics (mean, standard
deviation, number of scores, low score, and high score) – NOTE: While there are
a number of libraries available with functions to calculate descriptive
statistics, I am requiring you to write your own code to do these calculations
(see Figure 1 for standard deviation formula).
• Display the descriptive statistics in a nicely formatted
table (see Figure 2)
• Use the grade curve table to determine the letter grade
for each numeric score
• Create a new file named “Scores-and-Letter-Grades.txt”
that contains the score and letter grade on the same line (see sample first
lines of new file in Figure 3)
• Count the total number of scores for each letter grade
(i.e., number of As, Bs, Cs, etc.) – HINT: A dictionary is an efficient tool
for accumulating counts.
• Display a curved grade cut-off-point table (see Figure 2)
• Display a grade distribution table (see Figure 2)
Get Free Quote!
418 Experts Online