3 h 425) ZAG a) Write a subprogram that accepts an array X with K elements (K<£.50 š and calculates the sum XSUM of the elements and the sum XSUM2 of ž : (. the sguares of the elements of X and returns XSUM and XSUM2 to k > c— the calling program. (15) b) Consider a program in which we have defined an array A with 50 see elements and an array B with 40 elements. Use the above sub- . program to calculate the ratio Rl that eguals the sum of the . sguares of the A's divided by the sum of the zobar es of the B's and the ratio iš R2 that eguals the sum of the A's divided by the sum of the B's. You do not need to write a complete program here--only the statements reguired to compute Rl and R2. RE NR MA drei SE SUN S S NieM : a beoe $5