two-dimensional array
Not what you're looking for?
Step by step instructions
Create an application that either sums or averages the rows or columns of a two-dimensional array depending on user choices. Use the following data for the array.
5 7 3 9 12
4 8 9 13 4
0 -1 -7 13 8
4 4 4 4 0
Purchase this Solution
Solution Summary
This job examines two-dimensional arrays. The expert creates an application that either sums or averages the rows or columns of a two-dimensional array depending on user choices.
Solution Preview
I have attached the answer file
Func( p, row, col)
(
int *p ;
int row, col, i, j, x, y ;
float sum;
printf(" Please enter 1 for sum and 2 for Average");
scanf("%d", &i);
printf("Please enter 1 for rows and 2 for columns");
scanf("%d", &j);
sum = 0;
If ( j == 1)
{ ...
Purchase this Solution
Free BrainMass Quizzes
C# variables and classes
This quiz contains questions about C# classes and variables.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Basic Networking Questions
This quiz consists of some basic networking questions.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.