Imagine a tollbooth at a bridge. Cars passing by the booth areexpected to pay a 50 cent toll. Mostly they do,but sometimes a car goes by without paying. The tollbooth keepstrack of the number of cars that is gone by, and of the totalamount of money collected. Model this tollbooth with a class calledtollbooth. The two data items are typeint to hold the total number ofcars, and type double to hold thetotal amount of money collected. Aconstructor initializes both of these to0. A member function calledpayinCar() increments the car total andadds 0.50 to the cash total. Another function callednopayCar(), increments
PayPal Gateway not configured
PayPal Gateway not configured