1. In this program data comes in pairs, say height andweight:
.data
pairs: .word 5 # number of pairs
.word 60, 90 # first pair: height, weight
.word 65, 105
.word 72, 256
.word 68, 270
.word 62, 115
Write a program that computes the average height and averageweight. Leave the results in two registers.
2. Compute the dot product of two vectors. A vector is an arrayof integers. Both vectors are the same length. Ask the user for thelength of the vectors. Then prompt for and read in the value ofeach element of each vector. Reserve space in memory for vectors ofup to 10 elements, but allow vectors
PayPal Gateway not configured
PayPal Gateway not configured