--
#include<iostream.h>
#include<conio.h>
class ticketbooth
{
static int cnt;
static float tot;
public:
static void total()
{
cout<<"\n Total Amt collected : "<
cout<<"\n Total people Visited : "<
}
static void visit()
{
int n;
cout<<"\n if you want to purchase book then press - 1 ,otherwise press - 0 : ";
cin>>n;
if(n==1)
{
tot=tot+5;
}
cnt++;
}
};
int ticketbooth::cnt=10;
float ticketbooth::tot=1500.500;
void main()
{
ticketbooth t1;
int i;
clrscr();
for(i=0;i<5;i++)
{
ticketbooth::visit();
}
cout<<"\n----------------------------------------";
ticketbooth::total();
getch();
}