Question: Thank you in advance! 2)[60 points) Write a C program to do followings. Define an integer matrix variable whose maximum row and column sizes are
Thank you in advance!


2)[60 points) Write a C program to do followings. Define an integer matrix variable whose maximum row and column sizes are 50 each. By looping and using fscanf() function, read all data from the file named "Matrix.txt", and assign values to the matrix variable The format of the file is shown in the example below. *The first line contains two numbers: Row size and Column size. -The other lines contain matrix data 70 20 130 10 80 110 60 50 120 100 40 150 30 140 90 Note that the program should be general, and should work for any row and column sizes up to 50 each Calculate and display the followings on screen. Display the matrix. Display the total of all elements - EXAMPLE SCREEN OUTPUT MATRIX 70 20 130 10 80 110 60 50 120 100 40 150 30 140 90 TOTAL 1200
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
