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

In POS system, cashier computer connect to printer using serial rs232 usb or cable. We need to capture data from that connection, and parsing the data to get total amount for every

Virtual Base Classes This ambiguity can be resolved if the class derived have only one copy of the class base. This can be done by making the base class a virtual class. This k

A: No. Syntax wise it is permitted. But then the function is no longer Inline. Since the compiler will never know how deep the recursion is at compilation time.

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''''''''{'''''''' and end wi

Goals For this assignment you will write programs in C and LC-3 assembly code. Both programs will perform the identical recursive algorithm. The goals of this programming assignmen

Described the differences among a C++ struct & C++ class? A: The default member & base class access specifies are distinct. It is one of the commonly misunderstood aspects of C+

explain Storage management: free storage pool, garbage collection, compaction, boundary tag method; Hash tables and hashing functions

#quesdifferentiate betweenrelocatable and self relocating program with exampletion..

write a c program that multiplies 3 martices