Question: plz help with 7-10 int matrixA MAX DIM1 [MAXDIM matrixB [MAX DIM1 [MAX DIM sum [MAX DIM] [MAX DIM] int scores [STUDENTS]; int *pscores =

 plz help with 7-10 int matrixA MAX DIM1 [MAXDIM matrixB [MAXDIM1 [MAX DIM sum [MAX DIM] [MAX DIM] int scores [STUDENTS]; int*pscores = NULL; Question 1: Forward declaration (5 points) Declare here thefunctions used in the program, as needed // DO NOT modify main

plz help with 7-10

int matrixA MAX DIM1 [MAXDIM matrixB [MAX DIM1 [MAX DIM sum [MAX DIM] [MAX DIM] int scores [STUDENTS]; int *pscores = NULL; Question 1: Forward declaration (5 points) Declare here the functions used in the program, as needed // DO NOT modify main () int main() printf(" Problem 2, 3, 4, 5: n"); inputMatrixA () copyToMatrixB); addMatrix(); displaySumMatrix); printf ("nProblem 6,7: "); inputScores () scoresStats() getchar )/ printf ("nProblem 8 // neded to flushout Enter ( ) character left behind. Comment out if not needed "); createUsername(); printf (" Problem 9: "); lowerToUpperCase( ); printf("nProblem 10: "); searchPattern ); system ("pause"/eeded to keep console open in Vs Question 2: inputMatrixA (5 points) matrixA][ is already declared. Input the elements of matrixA from the user. Use the macro MAX_DIM in your code, so that when MAX_DIM is changed from 3 to any other number, this function would still work Note: Usually, matrix is entered row-wise. So input 1st row of elemets , followed by 2nd row and so on void inputMatrixA () Question 3: copyToMatrixB (5 points) matrixB is already declared. Compose matrixB identical to matrixA Copy elements of matrixA to matrixB. You may use array operation or pointer to do the copying. So, after calling this function, matrixB and matrixA should have same elements. Use the macro MAX_DIM in your code, so that when MAX_DIM is changed from 3 to any other number, this function would stil1 work Debug tip: Use display function below to temporarily display matrixA and matrixB to verify if your functions work correctly. void copyToMatrixB() Question 4: addMatrix (10 points) sum is already declared. Implement this math operation (2*A) + B and store the result in matrix 'sum'. Use the macro MAX DIM in your code, so that when MAX DIM is changed from 3 to any other number, this function would still work void addMatrix() Question 5: displaySumMatrix (10 points) Implement the function to display the sum' matrix. Display in this format: The matrix sum- void displaySumMatrix( Question 6: inputScores (10 points) Input the scores of students. The valid range of score is 0 to 100 (0 and 100 included). Keep prompting the user to input valid score if invalid score is input. This function should work as expected when STUDENTS macro is changed. You MUST use pointer'pScores' to input the scores to gain full points Using array operation (scores[i]) will earn you half points void inputScores () pScores-&scores [0] // enter code here Question 7: scoreStats (10 points) Now that the scores of students are stored, find the maximun and the average of those scores. Display these stats. gnore the decimal point accuracy since we are dealing with integers. This function should work as expected when STUDENTS macro is changed You MUST use pointer 'pScores' to gain full points Using array operation (scores[i]) will earn you half points Note: Make sure pointer 'pScores' is pointing to correct place. void scoreStats () Question 8: createUsername (15 points) Implement the function that creates and displays the user name of the user. Ask the user for their first and last name. The username is the first letter of first name, followed by the last name For instance, if the user's name is John Doe, then the username is jdoe The user may input upper or lower case characters for first and last name. Make sure that the usernameis all lower case. Note When using fgets , when you press Enter to finish entering the string, the Enter (n) character is also added to the string. Try to remove that character. void createUsername () int matrixA MAX DIM1 [MAXDIM matrixB [MAX DIM1 [MAX DIM sum [MAX DIM] [MAX DIM] int scores [STUDENTS]; int *pscores = NULL; Question 1: Forward declaration (5 points) Declare here the functions used in the program, as needed // DO NOT modify main () int main() printf(" Problem 2, 3, 4, 5: n"); inputMatrixA () copyToMatrixB); addMatrix(); displaySumMatrix); printf ("nProblem 6,7: "); inputScores () scoresStats() getchar )/ printf ("nProblem 8 // neded to flushout Enter ( ) character left behind. Comment out if not needed "); createUsername(); printf (" Problem 9: "); lowerToUpperCase( ); printf("nProblem 10: "); searchPattern ); system ("pause"/eeded to keep console open in Vs Question 2: inputMatrixA (5 points) matrixA][ is already declared. Input the elements of matrixA from the user. Use the macro MAX_DIM in your code, so that when MAX_DIM is changed from 3 to any other number, this function would still work Note: Usually, matrix is entered row-wise. So input 1st row of elemets , followed by 2nd row and so on void inputMatrixA () Question 3: copyToMatrixB (5 points) matrixB is already declared. Compose matrixB identical to matrixA Copy elements of matrixA to matrixB. You may use array operation or pointer to do the copying. So, after calling this function, matrixB and matrixA should have same elements. Use the macro MAX_DIM in your code, so that when MAX_DIM is changed from 3 to any other number, this function would stil1 work Debug tip: Use display function below to temporarily display matrixA and matrixB to verify if your functions work correctly. void copyToMatrixB() Question 4: addMatrix (10 points) sum is already declared. Implement this math operation (2*A) + B and store the result in matrix 'sum'. Use the macro MAX DIM in your code, so that when MAX DIM is changed from 3 to any other number, this function would still work void addMatrix() Question 5: displaySumMatrix (10 points) Implement the function to display the sum' matrix. Display in this format: The matrix sum- void displaySumMatrix( Question 6: inputScores (10 points) Input the scores of students. The valid range of score is 0 to 100 (0 and 100 included). Keep prompting the user to input valid score if invalid score is input. This function should work as expected when STUDENTS macro is changed. You MUST use pointer'pScores' to input the scores to gain full points Using array operation (scores[i]) will earn you half points void inputScores () pScores-&scores [0] // enter code here Question 7: scoreStats (10 points) Now that the scores of students are stored, find the maximun and the average of those scores. Display these stats. gnore the decimal point accuracy since we are dealing with integers. This function should work as expected when STUDENTS macro is changed You MUST use pointer 'pScores' to gain full points Using array operation (scores[i]) will earn you half points Note: Make sure pointer 'pScores' is pointing to correct place. void scoreStats () Question 8: createUsername (15 points) Implement the function that creates and displays the user name of the user. Ask the user for their first and last name. The username is the first letter of first name, followed by the last name For instance, if the user's name is John Doe, then the username is jdoe The user may input upper or lower case characters for first and last name. Make sure that the usernameis all lower case. Note When using fgets , when you press Enter to finish entering the string, the Enter (n) character is also added to the string. Try to remove that character. void createUsername ()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!