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
derivations 1. Regardless of the type of derivation, private members are inherited by the derived class, but cannot be accessed by the new member function of the derived class,

Stack operations - C++: Write a program to define basic stack operations in c++. int Stack::push(int elem) {    int m = getmax();    if (top    {       put_

Aim: To implement a program to swap two numbers using reference arguments. Code: void swap(int *a, int *b) {             int temp;             temp=*a;

algo of stack using two queue

please answer the question of following Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? B

Program to define an array in c: Write a program to define an array and print the value of array. void main() { int a[10]={0,11,21,34,44,75,46,57,88,89},i,j,k; clr

Mixed Mode Expressions and Implicit type Conversions A mixed mode expression is one in which the operands are not of the similar type. In this case, the operands are converted

d county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Necklaces