Print the column number and total of the column


Problem

For each of the following problems, he sure to output the results to the console.

A file has been provided called scores.txt. The file consists of 50 rows with each row consisting of 6 double values. Read the data in the ?le into a 2D array. Output the following information about the data:

1. Print the column number and total (start your column count at 0) of the column with the highest total.

2. Print the row number (start your row count at 0) of the row with the lowest total.

3. Write a function that will accept 2D array and return the column index. row index and the number that is closest to 50. (Hint: you may find the fabs function useful for this part). Do not write cout statement in this method.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Print the column number and total of the column
Reference No:- TGS03255376

Expected delivery within 24 Hours