Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Q1. Write C++ coding for each of the questions below
a) Find the maximum number of each row in the matrix below. You can use another variable called max to store the maximum number for each row. Display the result in the following format:34 56 20 33 18
89 35 67 23 54
67 42 56 76 90
56 78 14 79 11

Awesome. When you get past the, "Have people on the Internet do my homework for free" stage, let us know.
If you start doing your homework yourself, but run into problems, feel free to ask us. Make sure to include the code you're having problems with.
If you prefer to have the Internet to do your homework, well, that's an option, too.

Judago: well, at least he had to type it out, that counts for something
I counter that he probably copy/pasted from the course's online materials. But he also asked Yahoo Answers, so he gets +1 for that.

int max=0;
for(int i=0;i<rows;i++)
{
for(int j=0;j<cols;j++)
{
if(matric[i][j]>max)
max=matric[i][j]>max
}
}

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |