Rollno/Subject Total: Assignment-IX Two-Dimensional Array and String
Rollno/Subject Total: Assignment-IX Two-Dimensional Array and String
Rollno/Subject 1 2 3 4 5 6 Total
1 30 83 45 92 60 76 386
2 45 43 67 52 89 56 352
3 28 10 29 68 73 62 270
Total 103 136 141 212 222 194 1008 (Grand Total)
Assuming ‘n’ students and ‘m’ subjects, design a menu driven program using function which will do
the followings where all the students’ rollno and subject name are integers as shown in the above table.
i) Read those student marks and display them on the screen along with their rollno using
pointer.
ii) Display the subject-wise and student-wise total marks obtained and the grand total.
iii) Display the student details who obtained the highest mark.
2. You are asked to store all the students name those who have enrolled in the class. You designed a two
dimensional array (std_name_array[ ][ ]) where the first dimension stores the number of the students
name and the second dimension stores the maximum length of each name. Do the following:
i) Read those students name and display them on the screen using pointer.
ii) Search a particular student name is present in the std_name_array[ ][ ] or not using binary
search.
iii) Append the word ‘TIST’ at the end of each name.
iv) List out the name(s) which has maximum characters.