Zergottos / c_sharp_task

0 stars 0 forks source link

Avg, median and mean values are always whole numbers #1

Open 1n1n1t3 opened 3 years ago

1n1n1t3 commented 3 years ago

For score values 9, 10, 12, 13, 13, 13, 15, 15, 16, 16, 18, 22, 23, 24, 24, 25 I get 16 average and 15 mean. Correct values are 16,75 avg and 15,5 mean.

Zergottos commented 3 years ago

This should be solved in the new commit. Change the some basic types of variables. Also updated the method for calculating median (I had forgotten from how we calculated it in school but now I've updated it :) ).