Question: 1 // Lab 5 - cookies.cpp 2 I/ This program finds the average number of boxes of cookies 3 / sold by the children in

1 // Lab 5 - cookies.cpp 2 I/ This program finds the average number of boxes of cookies 3 / sold by the children in a particular scout troop. 4 // It illustrates the use of a counter, an accumulator, 5 // and an end sentinel. 6 I/ PUT YOUR NAME HERE. 7 #include :iostream 8 usingnamespace std 9 10 int main() int numBoxes, / Number of boxes of cookies sold by one child / Accumulates total boxes sold by the entire troop / Counts the number of children selling cookies 12 totalBoxes, numSeller; 15 16 double averageBoxes 17 18 // WRITE CODE TO INITIALIZE THE tota!Boxes ACCUMLATOR TO ? AND 19 THE numSeller COUNTER TO 1. / Average number of boxes sold per child 21 out
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
