Input The input will be the list of the 10 grades corresponding to the subjects.
Output In this case, the first subject has been compensated with +0.5, and the last one reduced -0.4 (do not forget to consider the different number of credits weight) The weighted average has not changed in this case.
Input
4.5 5 5 5 5 5 5 5 5 5.4
Output
5 5 5 5 5 5 5 5 5 5 PASS