This project
is on toll plaza management, whenever any vehicle will pass the toll plaza, it
has to pay tax. This system tell us that there are how many vehicles which have
paid and how many such vehicles which don’t paid toll plaza tax.
#include<iostream>
using namespace std;
char a;
char b;
char c;
class sir
{
private:
unsigned
int cars;
unsigned
int amount;
public:
void
az()
{start:
cout<<"car
payed amount or not press y/n"<<endl;
cin>>b;
if(b=='y')
{cars=0;
amount=0;
asd:
cars=cars+1;
amount=amount+50;
cout<<"no.
of cars is
"<<cars<<endl<<"total amount is "<<amount<<endl;
cout<<"if
car payed amount then press y otherwise n"<<endl;
cin>>a;
if(a=='y')
{goto
asd;}
}
else
{}
ab:
cars=cars+1;
cout<<"total
cars are "<<cars<<endl<<"total amount is "<<amount<<endl;
cout<<"next
car payed amount or not press y/n"<<endl;
cin>>c;
if(c=='y')
{goto
asd;}
else
{goto
ab;}
}
};
void main()
{
sir
yes;
yes.az();
cout<<endl;
system("pause");
}
gdfg
ReplyDelete