I almost have this complete but I am not sure how to change my input collection. Directions are to: You have to change your input collection to get 4 values (quarterly sales) before calling that one function that stores them in the array.
a) line 12: float divSales[4] = { 0 }; //stores quarterly sales per division
b) delete line 18
c) line 65: the logic of this is wrong. You need to collect the four sales values and send them all at once via the function addDivSales i.e. s1, s2, s3 and s4
Thank you..
In line 12 I get the error "array bound cannot be deduced from an in class initializer"
I am also still getting an error in line 65 saying that "qtr" is an undeclared identifier.
Have a think about it but I reckon you need an array of sales in main, it would have 4 elements that you collect the data on in a loop and then send to addDivSales( float[] sales) instead of 4 separate values. See if it makes sense.