Computer Science and Programming - Fall 2009

 

Lab. 12 [Maximum points – 30]

 

For demonstration and submission by end of the lab.

 

Refer to Programming exercise No. 1 on page 560 of your textbook. Write a program to read in values for the array and display all the results required in a, b, c and d.

Use MAX_ROW = 4; and  MAX_COL = 3.

 

For part c of the exercise define and use a function which computes the sum of all the elements of a 2-dimensional array.