Today's challenge is to write a function that accepts three integer values, calculates the mean, then returns the letter value associated with that grade. If the mean of those three integers ends in a number greater than five, append a plus sign to the letter grade. If it is less than five, append a minus sign.
Numerical Score Letter Grade 90 <= score <= 100 'A' 80 <= score < 90 'B' 70 <= score < 80 'C' 60 <= score < 70 'D' 0 <= score < 60 'F'
grade(64, 55, 92) =>
grade(99, 89, 93) =>
grade(33, 99, 95) =>
Want to propose a challenge idea for a future post? Email firstname.lastname@example.org with your suggestions!