
Patrick B. answered 06/07/20
Math and computer tutor/teacher
using namespace std;
#include <iostream>
float GO( float * A)
{
float salesTotal=0;
for (int iLoop=0; iLoop<7; iLoop++)
{
cout << " Please input the sales amount for day # " << (iLoop+1) << ":>";
cin >> A[iLoop];
cout << " Sales amount for day # " << (iLoop+1) << endl;
salesTotal += A[iLoop];
}
cout << "-----------------------------------------------" << endl;
cout << "Total is :" << salesTotal << endl;
}
int main()
{
float salesAmts[7];
GO (salesAmts);
}