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

Given I have filled a 3X5 array, called TEST, with numbers,write just the code t

ID: 3615795 • Letter: G

Question

Given I have filled a 3X5 array, called TEST, with numbers,write just the code that will find the max value in each column ofthe array and output this value to the screen.

I did maximum for one dimensional array, but don'tknow how to do multi from this

#include<iostream>

#include<math.h>

using namespace std;

int main()

{

      //variables

      double TEST[3], max=0.0;

      int count=0;

           //enter test scores

      for (count = 0; count<3;count++)

      {

           cout<<"Enter test scores"<<endl;

           cin>>TEST[count];

      }

      cout<<endl;

      //finding max in column

      max = TEST[0];

      for(count = 1; count<3; count= count + 1)

      {

           if (max<TEST[count])

           {

                 max = TEST[count];

           }

      }

      cout<<"The maxis:      "<<max<<endl;

      system("pause");

}

Explanation / Answer

#include #include using namespace std; int main() {       //variables       double TEST[3][5], max=0.0;       int countRow=0, countColumn=0,count=0;            //enter test scores       for (int i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote