Question: c programming code pls 4) Consider a 2D array, take input from the user. Then, find a) sum of main diagonal element, b) sum of

c programming code pls
c programming code pls 4) Consider a 2D array, take input from

4) Consider a 2D array, take input from the user. Then, find a) sum of main diagonal element, b) sum of border elements, c) maximum row sum, d) maximum column sum Sample Input: Consider the following 2D array: 1334 567 Sample output: Sum of main diagonal element: 28(13+6+9) Sum of border element: 59(13+3+4+5+7+10+8+9) Row0 sum: 20(13+3+4) Rowl sum: 18(5+6+7) Row2 sum: 27(10+8+9) Maximum row sum: 27 Column0 sum: 28(13+5+10) Column1 sum: 17(3+6+8) Column2 sum: 20(4+7+9) Maximum column sum: 28 [NB: You need not display the elements that are being added (shown in first bracket in sample output), just display the sum and maximum] 5) Create a structure called Student with the following members: Roll number, Name, Department, Course, Year of joining, Cgpa. Assume that there will not be more than 50 students in the college. i) Populate the array with information of nnumber of students (the number n is provided by user). Save info in file ii) Read information from file and display names and id of all students stored in file

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!