displays highest sales figure and average sales
<p>l have this program in C++ to find highest sales figure and average but its giving errors below help please</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

// You must add the three functions here

void getSales(float &amp; sales1P, float &amp; sales2P, float &amp; sales3P,
        float &amp; sales4P) {

    cout &lt;&lt; "Enter four sales values: " &lt;&lt; endl;

    cin &gt;&gt; sales1P &gt;&gt; sales2P &gt;&gt; sales3P &gt;&gt; sales4P;
}

float calcAverage(float sales1P, float sales2P, float sales3P, float sales4P) {

    return (sales1P + sales2P + sales3P + sales4P) / 4;
}

float findHighest(float sales1P, float sales2P, float sales3P, float sales4P)

{

    float highest = sales1P;
    if (sales2P &gt; highest)
        highest = sales2P;
    if (sales3P &gt; highest)
        highest = sales3P;
    if (sales4P &gt; highest)
        highest = sales4P;
}

void displayOutput(float highestSales, float averageSales) {
    cout &lt;&lt; "The highest sales figure is " &lt;&lt; highestSales

    &lt;&lt; " with an average of " &lt;&lt; averageSales &lt;&lt; endl;
}

int main()

{
    float sales1,
    sales2,
    sales3,
    sales4;
    float averageSales;
    float highestSales;
    for (int i = 0; i &lt; 4; i++)
    // Get the sales for each division.
    sales1 = getSales();
    sales2 = getSales();
    sales3 = getSales();
    sales4 = getSales();
    //
    //getSales(sales1, sales2, sales3, sales4);
    averageSales = calcAverage(sales1, sales2, sales3, sales4);
    //getSales(sales1, sales2, sales3, sales4);
    highestSales = findHighest(sales1, sales2, sales3, sales4);
    displayOutput(highestSales, averageSales);
    system("PAUSE");
    return 0;
}
</code></pre>

<p>Error:</p>

<pre><code>error::::    In function `int main()': 
\Examples_C++\question_4a.cpp 5 C:\Examples_C++\C [Error] too few arguments to function void getSales(float&amp;, float&amp;, float&amp;, float&amp;)' 
\Examples_C++\question_4a.cpp 41 C:\Examples_C++\C [Error] at this point in file 
\Examples_C++\question_4a.cpp 41 C:\Examples_C++\C [Error] void value not ignored as it ought to be
\Examples_C++\question_4a.cpp 5 C:\Examples_C++\C [Error] too few arguments to function `void getSales(float&amp;, float&amp;, float&amp;, float&amp;)' 
\Examples_C++\question_4a.cpp 42 C:\Examples_C++\C [Error] at this point in file 
\Examples_C++\question_4a.cpp 42 C:\Examples_C++\C [Error] void value not ignored as it ought to be 
\Examples_C++\question_4a.cpp 5 C:\Examples_C++\C [Error] too few arguments to function `void getSales(float&amp;, float&amp;, float&amp;, float&amp;)' 
\Examples_C++\question_4a.cpp 43 C:\Examples_C++\C [Error] at this point in file 
\Examples_C++\question_4a.cpp 43 C:\Examples_C++\C [Error] void value not ignored as it ought to be 
\Examples_C++\question_4a.cpp 5 C:\Examples_C++\C [Error] too few arguments to function `void getSales(float&amp;, float&amp;, float&amp;, float&amp;)' 
\Examples_C++\question_4a.cpp 44 C:\Examples_C++\C [Error] at this point in file 
\Examples_C++\question_4a.cpp 44 C:\Examples_C++\C [Error] void value not ignored as it ought to be 
</code></pre>
