Write a code block to compute the individual summation per


Part I

Given a 1D array of int "intA" initialized to 10 values : 100, 200, ... 1000, a second un initialized array intB:

1. Write a program to copy intA to intB in reverse order

2. Must use looping techniques

3. Must print both arrays

Q02:

Given a 2D array of chars chA initialized to

          A    B    C    D

          E    F    G    H

          I    J    K    L

          M    N    O    P

          Q    R    S    T

1. Write a code block to print the content of chA as it is shown above.

2. Write a code block to print the transpose of chA.

Transpose example:

If m = 1 2 3 → mT = 1 4
         4 5 6            2 5
                            3 6

3. Write a code block to compute the individual summation per each column, per each row and the overall summation of chA.

4. Must use looping techniques

Part II

Q01:

Write a program to do the following:

1) Declare three uninitialized array of ints, intA1, intA2, intA3, all of length of 16.

2) A function that prints an int array in one line.

3) A function that randomly generates an int array. (hint: check random32 in Irvinelib help)

4) A function that copies an int array from another.

5) A function that reverses an int array.

6) A function computes the summation of an int array.

7) A function that computes an element-wise addition of two int arrays.

8) A function that computes an element-wise subtraction of two int arrays.

9) A function that computes element-wise abs of an int array.

10) Test each function from main, print appropriate array after each test.

Solution Preview :

Prepared by a verified Expert
Assembly Language: Write a code block to compute the individual summation per
Reference No:- TGS01148091

Now Priced at $60 (50% Discount)

Recommended (99%)

Rated (4.3/5)

A

Anonymous user

5/26/2016 6:49:45 AM

The assignment is basically an assembly programming language in which you have to write a program performing the following: 1) Declare 3 uninitialized arrays of ints, intA1, intA2, intA3, all of length of 16. 2) A function which prints an int array in one line. 3) A function which arbitrarily produces an int array. 4) A function which copies an int array from the other. 5) A function which reverses an int array. 6) A function calculates the summation of the int array. 7) A function which calculates an element-wise addition of the two int arrays. 8) A function which calculates an element-wise subtraction of the two int arrays. 9) A function which calculates element-wise abs of an int array. 10) Test each and every function from main, print suitable array after each test.