Filling a 2 d array for(i=0; i<rows; i++) { for(j=0; j<cols; j++) { x[i][j] = rand()%10; } }
Survey • A survey has 15 questions and each question has 5 answers. The survey results are in a file called Survey. txt in the following format: 145353451123245 432434512322431 123234345342125 … • Read each survey result into an array – – – • • • How many people surveyed? Number of lines (Nlines). How many questions in each survey? Number of columns = 15 (Nquest) How many different values for each question? 5 (Nvalue) Need to use two dimensional array int Srvy[Nlines][Nquest] What is the value of Srvy[2][10]?