Write a program that accepts six(6) pairs of values from the user and then calculates and stores the difference of each pair of values in an array. The array of calculated values should then be sorted into ascending order and printed on the screen. Use modular programming.