Question: getGradesffloat scores, string grades, int size) convert from score to letter grade for each score. TODO Write a function getGrades that converts an array of

getGradesffloat scores, string grades, int size) convert from score to letter grade for each score. TODO Write a function getGrades that converts an array of floats representing students' grades into strings representing their letter grades. The function does not return a value, but should fill in the grades array. The function should take the following parameters: an array of floats scores with entries in the range [0, 100] an array of strings grades in which the associated grade is returned. an integer representing the size of the array size Use the grading criteria for this class. Assume for this exercise that ranges are inclusive on the lower end. eg. A is 193, 10 .A-s po, 93, B. isp87, 90 . Bis po, 87 , less than 60 is an F. If the following array is provided to the function: float scores[] = {92.8, 87, 74, 94.5); the function should return the following values in grades: f "A-", "B+", "C", "I Answer: (penalty regime: 0 %) 1 void getGrades(float scores[], string gradesC], int size)f 2 //your code here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
