Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is what the instructions say: During a recent University disturbance some s

ID: 3619374 • Letter: T

Question

This is what the instructions say: During a recent University disturbance some students camebackinto the back of the lecture hall and began throwing bags ofredpaint over the students seated in the class. This presented agreatopportunity for students to analyze the potential results ofsuchan act for future references. The following assumptions are made based on thereportedincident. The lecture hall consists of 10 rows of 12 seatseach.One bag of paint falling on a certain seat leaves 2 cups ofpaintover the person in the seat and 1 cup of paint over eachperson inadjacent seats. (Situation 1.) With this information, write a programtocalculate the average number of cups of paint that wouldbereceived by the people in each seat if 35 bags of paintwerethrown. One simulation does not yield valid resultssoyou will need to simulate the situation 50 times. From the runsyoucan take an average of the 50 runs and make somejudgments. (Situation 2.) If you were a student in this class andyouknew that this disturbance was about to happen, but you did notwantanyone to know you knew, also you had to come to class toavoidany suspicion, what seat would you sit in (smallest)? Whatseatwould you like your instructor to sit in (largest)? (Situation 3.) Suppose you were the instigator ofsucha dastardly feat. You are trying to determine how manybags ofpaint you need in the classroom to make it asuccessfuldisturbance. You would consider a successfuldisturbance if75% of the people were covered with 3 cups of paintor, because youdon't want to drown some poor sole, if any row orcolumn receivesan average of 5 cups per person, then thissimulation run wouldterminate. Run the simulation again (continuewith the currentrandom number) 50 times and determine the number ofbags needed toaccomplish this feat and stay within theconstraints. Restrictions:     Youareto use two-dimensional array(s) to hold seated students.                            Youareto use Functions/Procedures in your implementation. Output:               Printoutthe average paint received for each seat in table form.                            Indicatewhere you and the instructor would sit.                             Printoutthe number of bags the instigator would bring.                            Showthe number of times constraints were met for situation3. This is what the instructions say: During a recent University disturbance some students camebackinto the back of the lecture hall and began throwing bags ofredpaint over the students seated in the class. This presented agreatopportunity for students to analyze the potential results ofsuchan act for future references. The following assumptions are made based on thereportedincident. The lecture hall consists of 10 rows of 12 seatseach.One bag of paint falling on a certain seat leaves 2 cups ofpaintover the person in the seat and 1 cup of paint over eachperson inadjacent seats. (Situation 1.) With this information, write a programtocalculate the average number of cups of paint that wouldbereceived by the people in each seat if 35 bags of paintwerethrown. One simulation does not yield valid resultssoyou will need to simulate the situation 50 times. From the runsyoucan take an average of the 50 runs and make somejudgments. (Situation 2.) If you were a student in this class andyouknew that this disturbance was about to happen, but you did notwantanyone to know you knew, also you had to come to class toavoidany suspicion, what seat would you sit in (smallest)? Whatseatwould you like your instructor to sit in (largest)? (Situation 3.) Suppose you were the instigator ofsucha dastardly feat. You are trying to determine how manybags ofpaint you need in the classroom to make it asuccessfuldisturbance. You would consider a successfuldisturbance if75% of the people were covered with 3 cups of paintor, because youdon't want to drown some poor sole, if any row orcolumn receivesan average of 5 cups per person, then thissimulation run wouldterminate. Run the simulation again (continuewith the currentrandom number) 50 times and determine the number ofbags needed toaccomplish this feat and stay within theconstraints. Restrictions:     Youareto use two-dimensional array(s) to hold seated students.                            Youareto use Functions/Procedures in your implementation. Output:               Printoutthe average paint received for each seat in table form.                            Indicatewhere you and the instructor would sit.                             Printoutthe number of bags the instigator would bring.                            Showthe number of times constraints were met for situation3.

Explanation / Answer

please rate - thanks part A see my message and get back to me #include #include #define ROWS 10 #define COLS 12 using namespace std; void throwbags(double[][COLS]); void print(double[][COLS]); void findaverage(double[][COLS],int); void min(double[][COLS],int&,int&); void max(double[][COLS],int&,int&); int main() {double seats[ROWS ][COLS]={0}; int bags,runs,run=50,bag=35; srand(time(0)); for(runs=1;runs
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote