write a programme that creates a twodimentional array initialised with test data
ID: 3617890 • Letter: W
Question
write a programme that creates a twodimentional array initialised with test data. use 4 rows and 5column datatype. the programme should have the followingfunctions: 1.getTotal:- this function should accepta two dimentionalarray as its argument and return the total of all the values in thearray 2. getAverage 3. getRowTotal 4. getColumnTotal 5. getHighestInRow 6 getLowestInRow write a programme that creates a twodimentional array initialised with test data. use 4 rows and 5column datatype. the programme should have the followingfunctions: 1.getTotal:- this function should accepta two dimentionalarray as its argument and return the total of all the values in thearray 2. getAverage 3. getRowTotal 4. getColumnTotal 5. getHighestInRow 6 getLowestInRowExplanation / Answer
please rate - thanks # include #define NROW 4 #define NCOL 5 using namespace std; int getTotal(int[][NCOL]); int getRowTotal(int[][NCOL],int); int getColumnTotal(int[][NCOL],int); double getAverage(int); int getLowestInRow(int[][NCOL],int); int getHighestestInRow(int[][NCOL],int); int main () {int i,j,choice; intnum[NROW][NCOL]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},val; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.