I have written a solution for readability from pset2 but I'm having problems with one of the points:
:( handles single sentence with multiple words expected "Grade 7\n", not "Grade 8\n".
So I enter the suggested text from check50 and get the following:
Text: In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.
Index: 7.535600
Grade 8
I'm adding the index just to explain what I want to say. I'm using round(index) to get the rounded value and it rounds 7.5356 to 8 as it normally would. But check50 doesn't agree with this saying that the grade should be 7 not 8. For this reason I want to round the number based on the second digit after the decimal point which is 3. If we multiply it by 10 it becomes 75.3 and if we round it, it becomes 75. I tried: the following but it's not working because it rounds every other value to the smallest number, like 7.77 becomes 7.
int grade = (int)round(index*10)/10;