Question: Problem Objective You are required to write an interactive object-oriented program which performs the following tasks: Reads 16 integers into a two-dimensional array. Prints the

Problem Objective

You are required to write an interactive object-oriented program which performs the following tasks:

Reads 16 integers into a two-dimensional array.

Prints the content of the array.

Notice (Requirements):

For each of the above operation, you must write a function to perform the required task. Each function must receive the array as its parameter and finds (returns) an appropriate answer.

1-Finds the sum of the first row.

2-Finds the sum of the first column.

3-Finds sum of the main diagonal (right main diagonal).

4-Prints the results using an appropriate format

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!