Problem
Write a program that calculates the average waiting time for a given workload using SRTF (i.e., preemptive SJF) and, for the sake of comparison, both SJF (non-preemptive) and FCFS. The workload is specified by the user entering a series of integers separated by whitespace.