Question: The Bank of Heather has performed a study showing that ATM customers wont wait more than one minute in line. Using the simulation from Listing
The Bank of Heather has performed a study showing that ATM customers won’t wait more than one minute in line. Using the simulation from Listing 12.10, find a value for number of customers per hour that leads to an average wait time of one minute. (Use at least a 100-hour trial period.)
Listing 12.10

Listing 10.10 stack.h // stack.h class definition for the stack ADT #ifndef STACK_H_ #define STACK_H_ typedef unsigned long Item; class Stack { private: enum {MAX = 10); Item items [MAX]; int top; public: // constant specific to class // holds stack items // index for top stack item stack(); bool isempty() const; bool isfull () const; // push() returns false if stack already is full, true otherwise bool push (const Item & item); // add item to stack // pop () returns false if stack already is empty, true otherwise bool pop (Item & item); // pop top into item. }; #endif
Step by Step Solution
3.38 Rating (164 Votes )
There are 3 Steps involved in it
The average wait time is calculated by taking the sum of all the individual wait times and dividing ... View full answer
Get step-by-step solutions from verified subject matter experts
