Can someone comment through this code and explain to me indetail how exactly it is working? I am just now learning aboutarrays and saw this example on here. Please be detailed about howthe variables/arrays are working.
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std;
// constant variable declaration
const int COUNT = 5;
const int DAYS = 7;
// This functions tores the names of runners and number of milsrun each day
void inputData(string names[], int sizeOfName, doublenumOfMiles[][DAYS], int rowSize)
{
//Create input file name
ifstream infile;
infile.open(“Data.txt”);
int checkNames = 0, checkMiles = 0;
while (checkNames < sizeOfName)
{
infile >>names[checkNames];
while (checkMiles < DAYS)