In this video, Matrices are explained with the help of two programs, one is displaying transpose of a matrix and the other one is finding a given matrix is a sparse matrix or not.
Link to the Book - Essentials of Computer Applications:
https://www.amazon.in/Essentials-Comp...
Link to Nested loops Video:
• Lesson 25 Nested Loops - Introduction
Practice Exercise : Matrix
1. Five Students of a medical school opted for Pathology subject and the mid-term has six multiple choice questions. Design a program to read answers of 5 students (A, B, C, D) which is a matrix of order 5X6. Initialize the answer Key with {A, B, C, B, C, D} for all 6 questions which is a 1D array. The output should be the total marks of each student in the following format.
Input:
Student 1: A B B C C D
Student 2: A B C B D B
Student 3: A C D B B A
Student 4: C B D A B C
Student 5: A B C D C D
Output:
Student 1: 4
Student 2: 4
Student 3: 2
Student 4: 1
Student 5: 5
Hint: Answers of students is a 5X6 2D character Array. Answer key is a 1D array with 6 characters and output must be stored in an integer 1D array with 5 elements to store marks of each student.