You are to write a complete program in MIPS assembly language that implements the selection sort algorithm to sort an array of integers in both ascending and descending order. You program must be based on the C code presented below. You are to use the MIPS simulator QtSpim. You may use the QtSpim tutorial provided by the University of the Pacific and available at: https://ecs-network.serv.pacific.edu/ecpe-170/tutorials/qtspim-tutorial
A list of SPIM system calls is provided as follows: see image.