Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

* */ void readNames(char myChart[10][10][15], int numRows, int numCols) { // pla

ID: 3706317 • Letter: #

Question

* */ void readNames(char myChart[10][10][15], int numRows, int numCols) { // place code for readNames here } void printChart(char myChart[10][10][15], int numRows, int numCols) { // place code for printChart here } /****************************************************************************** * Third Function * your function should return the number of names in the entire chart * name[length] is UPPERCASE___{PART 1} * AND create a 1-d array that holds the average length of the names per COLUMNS__{PART 2} ____ (a 1-d array of * doubles). * length will be provided by the user and should be requested to be entered * in main and passed to the function. The results from the function should * then be displayed by main ***************************************************************************/ int thirdFunction(char myChart[10][10][15], int numRows, int numCols, int length, double values[10]) { // place code for third function here, description for PART1 // and PART 2 above will be // posted on the board during your assigned lab period } int main() { char ourRoom[10][10][15]; // largest chart we will need double results[10]; // for thirdFunction results // place code here for your header // place code here for reading in number rows, number columns, and // code that makes sure the rows and columns are always less than 10 and // also code that calls your three functions appropriately return 0; }

where name[length] is uppercase average over columns

Explanation / Answer

#include<stdio.h>
int main(){
/* 2D array declaration*/
char disp[3][3][10];
/*Counter variables for the loop*/
int i, j;
for(i=0; i<3; i++) {
for(j=0;j<3;j++) {
printf("Enter value for disp[%d][%d]:", i, j);
scanf("%s", &disp[i][j]);
}
}
//Displaying array elements
printf("Two Dimensional array elements: ");
for(i=0; i<3; i++) {
for(j=0;j<3;j++) {
printf("%s ", disp[i][j]);
printf(" ");
}
printf(" ");
}
return 0;
}

this is for reading the multidimension array and showing the chart