The numbers in your expected output look like ints. Have you tried converting the double values to int values? Many ways to do this.
First do the marks have to be double?
Otherwise convert the...