Where I get my c++ code wrong? Please help me. #include #include using namespace std; void getSales(double *sales, int size); double totalSales(double *sales, int size); int main() { const int...


Where I get my c++ code wrong? Please help me.


#include
#include
using namespace std;


void getSales(double *sales, int size);
double totalSales(double *sales, int size);


int main()
{
    const int QUARTERS=4;
    double sales[QUARTERS];
    getSales(sales, QUARTERS);
    cout<>
    cout<><>
    cout<"the total="" sales="">
    cout<><>
    return 0;
}
void getSales(double *array, int size)
{
    for (int count=0; count
    {
        cout<"enter a="" sale="">
        cout<><>
        cin>>array[count];
    }

}



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here