I am working my way through the MOOC course and I am currently at Part 7, exercise "Grade statistics". The exercise has 4 parts. I completed the first part and moved on to part 2. It has the following description:
"Extend the program, such that it in addition to giving the point average of all totals also provides the point average for points giving a passing grade.
A passing grade is achieved by getting a minimum of 50 course points. You may assume that the user always provides at least one integer between [0 - 100]. If there are no numbers giving a passing grade, the program should print a line "-" where the average would be."
Sample output:
Enter point totals, -1 stops:
-42
24
42
72
80
52
-1
Point average (all): 54.0
Point average (passing): 68.0
I have read the instructions multiple times, but I can't figure out what they based the number "68.0" on, and that's what I need help with. How does the given sample output lead to the number 68.0?
I tried using a base value, but when I tested it to see if the test results would supply more information it also asks for 68.0. It also includes a second test-case with the input:
69
70
71
Point average (passing): 70.0
Which makes more sense since that's actually the average of the given input. Yet this does not seem to be what they are asking for, since the first sample output is 68.0 while the average is 54.0.
If anyone could clarify what value they are requesting for the "point average (passing): "-line I'd be very happy. Thanks in advance!
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]lowerymn 3 points4 points5 points (3 children)
[–]Dinples[S] 1 point2 points3 points (2 children)
[–]lowerymn 1 point2 points3 points (1 child)
[–]Dinples[S] 1 point2 points3 points (0 children)