takeshi19 / medianstream Goto Github PK
View Code? Open in Web Editor NEWBased on a set of temperatures, this program calculates the median temperature for every new temperature value. Implemented with PriorityQueues. One mode of program is interactive: provides user with command prompt to enter numeric values, then produces median for every new input. File mode reads values from file, then produces medians onto a new output file.