--- itsgoindoooown <[EMAIL PROTECTED]> wrote:
> i need help getting started in this program that
> lets the user enter
> four quarterly sales values for six divisions of a
> company. Values are
> to be stored in a two-dimensional array. The program
> should display
> the following data for each quarter:
> 
>   -A list of the sales figures by division
>   -Each division's increase or decrease from the
> previous quarter    
>       (This will not be displayed for the first
> quarter.)
>   -The total sales for the quarter
>   -The company's increase or decrease from the
> previous quarter (This
> will not be displayed for the first quarter.)
>   -The average sales for all divisions that quarter
>   -The division with the highest sales for the
> quarter
> 
> 
> i'm not sure about what goes into each funtion.
> this what i got so far...
> 
> #include <iostream>
> using namespace std;
> 
> const int numDivisions = 6;
> const int numQtrs = 4;
> 
> //Function Prototypes
> void getSalesData(float [][numQtrs]);
> void salesbyDiv(float [][numQtrs]);
> void divIncDec(float [][numQtrs]);
> void totalQtrSales(float [][numQtrs]);
> void coIncDec(float [][numQtrs]);
> void average(float [][numQtrs]);
> void highest(float [][numQtrs]);
> 
<snip empty functions>

You provided a skeleton with brittle bones.  You need
to strengthen your skeleton by putting some meat on
the bones.  Create the appropriate function calls in
the appropriate function and add some code to each
function to show some of the logic you want to use.  

With all of your functions being void, how will you
get, for example, the average value back to main.  The
average function should compute the average, but
should not perform the output of the average.

Ray

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to