file processing, C/C++ Programming

Write a C++ program doing the following:
The program reads from the keyboard the numbers of rows and columns of a 2-D array of
integers. Then, it allocates this array (let’s name it A) and it initializes its elements with random
numbers between -4 and +4, and prints the array row by row.
Then, the program transforms the array in the following way: for every element A[i][j] equal
to 0, it makes the entire row i and the entire column j equal to 0. Finally, the program prints the
resulting array row by row.
Your must write three functions and use them in your program:
• a function that initializes randomly your 2-D array with integers between A and B;
• a function that prints your array;
• a function that performs the transformation described above
Posted Date: 10/31/2012 3:44:31 PM | Location : United States







Related Discussions:- file processing, Assignment Help, Ask Question on file processing, Get Answer, Expert's Help, file processing Discussions

Write discussion on file processing
Your posts are moderated
Related Questions
write a c++ program to accept 3 numbers and find the largest of 3 numbers

Selecting Array Elements Implement the following C++ code in assembly language, using the block-structured .IF and .WHILE directives. Assume that all variables are 32-bit signed in

Write a program that predicts users age: Write a program that predicts users' age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/s

How do you know that your class requires a virtual destructor? A: If at least your class has one virtual function, you must make a destructor for this class virtual. It will let

padovan string for n natural numbers p(n)=1,p(n)=2,p(n)=3 and use padovan formul to get output 1

In general, Roman numerals can be converted mathematically by simply assigning a numerical value to each letter, according to the chart below, and calculating a total: M=1000 | D=5

C Program for SORTING # include stdio.h> void main() {           char a;           int *p;           int i,j,temp;           clrscr();           p=&i;

You are required to give C++ implementation of following classes: 1. PropertyCategories 2. Plot 3. Flat 4. House Following is the description of all data member and member funct

processing two jobs through 2 machine

Differentiate between the expression "++a" and "a++"? - With ++a, increment happens first on variable a, and resulting value is used. This is known as prefix increment. - Wi