PDC
Classes | Macros | Functions
checkout.cpp File Reference

Simulation of a store checkout area. More...

#include <iostream>
#include <cassert>
#include <cstdlib>
#include "Register.h"

Classes

class  CheckoutArea
 

Macros

#define DFLT_REGISTERS   10
 

Functions

int main (int argc, char **argv)
 

Detailed Description

Simulation of a store checkout area.

Strategy
A CheckoutArea object contains multiple Register object, each representing one cash register. Carts with items arrive at each register, and the time to process a cart is based on the number of items to be scanned in that cart plus a transaction time (for a customer to pay, next customer to move up, etc. Using STL queue class.
Author
RAB
Date
10/2016

Macro Definition Documentation

#define DFLT_REGISTERS   10

Function Documentation

int main ( int  argc,
char **  argv 
)