Course Solutions Uncategorized (Solved) : 1 Program Data Comes Pairs Say Height Weight Data Pairs Word 5 Number Pairs Word 60 90 Fir Q28918618 . . . .

(Solved) : 1 Program Data Comes Pairs Say Height Weight Data Pairs Word 5 Number Pairs Word 60 90 Fir Q28918618 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post