Question: //PA 5 - cookies.cpp//This program finds the average number of boxer, of cookies//sold by the children in a particular scout troop.//it Illustrates the use of

 //PA 5 - cookies.cpp//This program finds the average number of boxer,

//PA 5 - cookies.cpp//This program finds the average number of boxer, of cookies//sold by the children in a particular scout troop.//it Illustrates the use of a counter, an accumulator, //and an end sentinel.//PUT YOUR NAME HERE. # include using namespace std; int Mint() int n urn Boxes, //Number of boxes of cookies sold by one child total Boxes, //Accumulates total boxes sold by the entire troop numSeller;//Counts the number of children selling cookies double averagcBoxes;//Average numbqj- of boxes sold per child//WRITE CODt TO INITIALIZE THE tOtalBoxes ACCUMIJVTOR TO 0 AND 19//THE numSeller COUNTER TO 1.cout > numAoxes;//WRITE CODE TO START A while LOOP THAT LOOPS WHILE numBoxes//IS NOT EQUAL TO -1# THE SENTINEL VALUE.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!