Program for dynamic 2d memory, C/C++ Programming

Requirements:

1.  This assignment as well as other assignments in this class must be finished on Windows operating system.

2.  Zip your program and submit the zip file on ANGEL

Assignments:

  In this lab, please complete a given program to perform the following tasks:

1.  Allocate a 10 by 5 2D byte array dynamically. Each element is a byte.

2.  For each element in the array, assign a random number. The range does not matter.

3.  Display the array.

4.  Exchange the rows as defined below:

Row 0 becomes Row 9

Row 1 becomes Row 0

Row 2 becomes Row 1

Row 3 becomes Row 2

Row 4 becomes Row 3

Row 5 becomes Row 4

Row 6 becomes Row 5

Row 7 becomes Row 6

Row 8 becomes Row 7

Row 9 becomes Row 8

Please swap the values, instead of just the pointers.

5.  Display the array.

You are required to finish the given program, "TwoDArray_lab6.asm", without adding new variables.

The output may look like:1409_dynamic 2D memory.png

2041_dynamic 2D memory.png

Posted Date: 3/5/2013 6:54:33 AM | Location : United States







Related Discussions:- Program for dynamic 2d memory, Assignment Help, Ask Question on Program for dynamic 2d memory, Get Answer, Expert's Help, Program for dynamic 2d memory Discussions

Write discussion on Program for dynamic 2d memory
Your posts are moderated
Related Questions
Inline functions, C++ provides inline functions to help reduce function_call overhead especially for small functions. The qualifier inline before function's return type in the f

Molecular dynamics for a Lennard-Jones system (in C++) 1. Write a function which reads in the input variables of a molecular dynamics simulation of a Lennard-Jones system. The inpu

Custom Scans and Alerts Think or Swim Project Description: I am seeking somebody to make me several Custom Scans and Alerts on Thinkorswim TOS Skills required are C++ Prog

What is the difference between an external iterator and an internal iterator? Ans) An internal iterator is executed with member functions of the class that has items to step th

Explain Processing A Data File? Mainly data file applications needs that a data file be altered as it is being processed. For instance in an application involving the processin

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

how we write decision tables, flowcharts,pseudocode,and algorithm in result management system

P o i n t e r d e c l a r a t i o n f o r C l a s s : M m; M * p m; / / C la ss M i s d e c l a r e d a s

write a program that counts the number of occurrences of the string in the n-th Padovan string P(n)   program in java // aakash , suraj , prem sasi kumar kamaraj college

Develop a program to meet the following requirements: 1. Must use at least one function in addition to main (you can use more) 2. Must use selection 3. Must use deference/indire