CS 301, Fall 2000 Assignment #10: 10 Points. Due Date: Friday, 12/1/00. (1) 1. Problem 8.2. (1) 2. Problem 8.3. (4) 3. Modify the MAL sorting program on page 222 (pg 212 in old edition) to do the following:** (a) prompt for up to 20 positive (>0) integers to be entered, with zero or a negative number used to end the input; (b) store these integers in the array 'ar'; (c) sort the integers into DESCENDING order (largest first); (d) print the sorted numbers from largest to smallest; (e) test your program on the following input: 1, 2, 5, 3, 4, 0. (1) 4. Problem 9.6 (3) 5. Write a MAL procedure called 'factorial' which calculates N factorial for a positive integer N. Pass the value of N in $a0 ($4) and return the value of N! in $v0 ($2). Test your procedure with the main program exactly as given below:** __start: geti $4 jal factorial move $9, $2 puti $9 done **For full credit, turn in well commented program listing and output from your computer run.