[Solved]Activity Required Provide Files Called Twodcpp Well Makefile Compile Run File Twodcpp Ske Q37187930
For this activity, you are required to provide files calledtwoD.cpp as well as a makefile to compile and run it. In your file,twoD.cpp, should have a skeleton of a main program as per normalwhich you will then fill it in as per the following.
The objective of this activity is to demonstrate advancedarray use, in terms of how to use declare and use them forprograms.
At the start of your program, you are going to need to declarea 5 by 5 element two dimensional array. That is, 5 dimensions by 5dimensions for a total of 25 elements in the array. Your programneeds to read in from a file, values.txt, where each line of thefile will have a comma delimited list of integer values with 5lines in total.
Each value of each line should be placed into the array, withthe line corresponding to the row index. The first value in theline goes into the first, index 0, column of the array. So thearray is filled row by row, from left to right.
Once furnished, you need to compute the following:• Row Totals: The sum of all elements per row• Column Totals: The sum of all elements per column• Array Average: The average of all elements in thearray
The output format should be displayed as follows (with examplevalues):Row Total 1: 5Row Total 2: 5Row Total 3: 5Row Total 4: 5Row Total 5: 5Col Total 1: 5Col Total 2: 5Col Total 3: 5Col Total 4: 5Col Total 5: 5Array Average: 1
Expert Answer
Answer to For this activity, you are required to provide files called twoD.cpp as well as a makefile to compile and run it. In you… . . .
OR

