Write a program to copy inta to intb in reverse order

Assignment Help Assembly Language
Reference no: EM13863163

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.

Reference no: EM13863163

Questions Cloud

Discuss the importance of quality control within logistics : Discuss the importance of Quality Control within logistics (Supply Chain), and demonstrate critical thinking
What must coors do to improve its future prospects? : What must Coors do to improve its future prospects?
Analysis of the success factors planning pitfalls benefits : Describe similarities and differences that you might expect to see with regard to strategic planning in these organizations. Include your analysis of the success factors, planning pitfalls, benefits, and other relevant factors. Taking into account..
What does the text mean when it refers to these two events : What does the text mean when it refers to these two events? Why is it important for operations to understand how these two forces play together
Write a program to copy inta to intb in reverse order : Write a code block to compute the individual summation per each column, per each row and the overall summation of chA and write a program to copy intA to intB in reverse order
Describe methods to use in identifying and narrowing : Describe methods to use in identifying and narrowing
Examine the role of internal environmental analysis : Examine the role of internal environmental analysis in identifying the basis for sustained competitive advantage.
Define the three parts of marketing strategy development : What four major psychological factors influence a customer's buying choices? Define the three parts of "Marketing strategy development." A company's products are born, grow, mature, and then decline, just as living things do. To remain vital, a c..
Determine coefficients the finite difference approximation : Determine coefficients a1, a2, a3, a4, and a5 so that the finite difference approximation is 4th order accurate. You can use Taylor's series expansions, the method of undetermined coefficients or Lagrange polynomial approximation for your derivati..

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd