I am writing a program for my c++ class and I am have trouble figuring out equations for mode and median of arrays. Any tips