Hey guys, I'm new here. I have some homework that I need some help on. I can't figure out how to correctly call these functions.
// This program will read in the quarterly sales transactions
// from the file salesData.txt. It will print the year and
// transactions in a table format.
// It will calculate year and quarter total transactions.
// PLACE YOUR NAME HERE
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
const int QUARTERS = 4;
const int YEAR_COUNT = 10;
const int COLUMN_WIDTH=12;
void getSales(double[][QUARTERS], int[]); // places sales figures into the array
void printSales(double[][QUARTERS], int[]); // prints data as a table
void printTableHeading(); // prints table heading
int main()
{
double sales[YEAR_COUNT][QUARTERS]; // 2D array to hold the sales transactions
int years[YEAR_COUNT]; // 1D array to hold the years
cout<<setprecision(2)<<fixed;
// call the getSales function to get the data from the file
// call the printTableHeading procedure to print the column
// headings for the output
// call the printSales function to display the table
return 0;
}
obviously there are other functions, but this is all I need help with currently.