0% found this document useful (0 votes)
87 views1 page

Rollno/Subject Total: Assignment-IX Two-Dimensional Array and String

The document discusses storing student data in two-dimensional arrays. The first section describes storing student marks for multiple subjects in a 2D array with rows for students and columns for subjects. It asks to write a program to read, display, and calculate totals from this data structure. The second section describes storing student names of varying lengths in a 2D array with rows for students and the maximum name length in the second dimension. It asks to read, search, modify, and analyze the student name data stored in this 2D array.

Uploaded by

Nihar Wadhwa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views1 page

Rollno/Subject Total: Assignment-IX Two-Dimensional Array and String

The document discusses storing student data in two-dimensional arrays. The first section describes storing student marks for multiple subjects in a 2D array with rows for students and columns for subjects. It asks to write a program to read, display, and calculate totals from this data structure. The second section describes storing student names of varying lengths in a 2D array with rows for students and the maximum name length in the second dimension. It asks to read, search, modify, and analyze the student name data stored in this 2D array.

Uploaded by

Nihar Wadhwa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment-IX

Two-dimensional Array and String


1. Assume that you now planned to stored subject wise student marks in the same student_array as
discussed in Assignment-VIII by modifying it to a two dimensional array as shown below for three
students and six subject marks.

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.

You might also like