Course Solutions Uncategorized (Solved) : Arrays Declare In1 In2 Arrays Words Array Double Words Lengths In1 In2 Equal Write Program Q29501307 . . . .

(Solved) : Arrays Declare In1 In2 Arrays Words Array Double Words Lengths In1 In2 Equal Write Program Q29501307 . . . .

 

Arrays

Declare in1 and in2 – arrays of words and out – the array ofdouble words

The lengths of in1 and in2 are equal.

Write a program that does the following:

out[x]=in1[x]+in2[x] if x is even

out[x]=in1[x]*in2[x] if x is odd

For all x s.t. 0<x<length of in1.

You may use any variable or register to stand for x

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

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

Related Post