Public: string a;//Ism Familiya
Sana 04.03.2022 Hajmi 19,81 Kb. #482006
Bog'liq
tikuv sexi loyihasi
#include
#include
#include
using namespace std;
class baza{
public:
string a;//Ism Familiya
int b;//yoshi
string c;//ma`lumoti
string d;//manzili
int e;//telefon
};
class buyurtma{
public:
string a;//Ism Familiya
int b;//telefon
int c;//maxsulot soni
string d;//Qayerga yetkazib berilsin
};
void scan(baza p){
cout<<"Ism Familiyangiz ";getline(cin,p.a);getline(cin,p.a);
cout<<"Yoshingiz ";cin>> p.b;
cout<<"Malumotingiz ";getline(cin,p.c);getline(cin,p.c);
cout<<"Manzilingiz ";getline(cin,p.d);
cout<<"Telefon raqamingiz ";cin>>p.e;
}
void print(baza p){
cout<<"Ism Familiyangiz "<
cout<<"Yoshingiz "<< p.b< cout<<"Malumotingiz "<
cout<<"Manzilingiz "<
cout<<"Telefon raqamingiz "<
}
int main()
{ int k=5;
baza *a=new baza[k+1];
a[0].a="Nuriya Toshaliyeva";a[0].b=24;a[0].c="o`rta ta`lim ";a[0].d="Farg`ona viloyati ";a[0].e=996893556;
a[1].a="Xurshida Yakubova";a[1].b=22;a[1].c="o`rta ta`lim ";a[1].d="Farg`ona viloyati ";a[1].e=947589632;
a[2].a="Nodira Ibrohimova";a[2].b=25;a[2].c="oliy";a[2].d="Farg`ona viloyati ";a[2].e=999654242;
a[3].a="Sanam Sayfiddinova";a[3].b=20;a[3].c="o`rta ";a[3].d="Farg`ona viloyati ";a[3].e=903689663;
a[4].a="Zulfizar Sulonova";a[4].b=18;a[4].c="o`rta ";a[4].d="Farg`ona viloyati ";a[4].e=971232003;
nish:
system("cls");
cout<<"Tikuv sexi ishlarini hisobini yuritish loyihasiga xush kelibsiz !!! "< cout << "Loyhamiz bo`limlarini tanlang !" << endl;
cout << "Xodimlar uchun -1" << endl;
cout << "Rahbarlar uchun -2" << endl;
cout << "Mijozlar uchun -3 " << endl;
cout << "Ishga kirmoqchi bo`lganlar uchun -4" << endl;
int n;
cin>>n;
if(n==1){
system("cls");
cout<<"Tikuv sexi ishlarini hisobini yuritish loyihasiga xush kelibsiz !!! "< cout<<"Ro`yhatdan o`z ism familiyangiz raqamini kiriting "< for(int i=0;i cout<< i+1<< " "<}
int u;
cin >>u;
system("cls");
cout<<"Tikuv sexi ishlarini hisobini yuritish loyihasiga xush kelibsiz !!! "< print (a[u-1]);
cout<<"\nTahrirlash uchun 1 ni kiriting \nDasturdan chiqish uchun 2 kiriting \nBosh menyuga qaytish uchun 3 ni kiriting " < int m;
cin>>m;
if(m==1){scan(a[u-1]) ; cout<<"Ma`lumotlar o`zgartirildi "<if(m==3){
system("cls");
goto nish;
}
if(m==2)
return 0;
}
if(n==2){
system("cls");
int f,h,j;
cout<<"Tikuv sexi ishlarini hisobini yuritish loyihasiga xush kelibsiz !!! "< cout<<"\nOy hisobotini tayyorlash "< cout<<"Sotilgan maxsulotlar soni "< cin>>f;
cout<<"Maxsulot tannarxi ";cin>>h;
cout<<"Maxsulot bozor narxi ";cin>>j;
cout<<"Ishchilar soni "; cout < cout<<"\nO`rtacha maoshi ";cout<<1500000;
if((j-h)*f - k*1500000>0)
cout<<"\n\n Bu oydagi sof foyda "<<(j-h)*f - k*1500000< else
cout<<"\n\n Bu oydagi zarar "<<-1*((j-h)*f - k*1500000)<cout<<"\nDasturni yakunlash uchun 1 ni kiriting "<
cout<<"Bosh menyuga qaytish uchun 2 ni kiriting "< int o;
cin>>o;
if(o==2){
system("cls");
goto nish;
}
else
return 0; }
if(n==3){
system("cls");
cout<<"Tikuv sexi ishlarini hisobini yuritish loyihasiga xush kelibsiz !!! "< cout<<"\nBiz bilan ishlayotgaingizdan xursandmiz !!! \nBuyurtmalarni berishingiz mumkin ."< buyurtma o;
cout<<"Ism Familiyangiz ";getline(cin,o.a);getline(cin,o.a);
cout<<"Telefon raqamingiz ";cin>>o.b;
cout<<"Mahsulotlar soni ";cin>>o.c;
cout<<"Maxsulotlar yetkazib beriladigan manzil ";getline(cin,o.d);getline(cin,o.d);
cout<<"\nBuyurtmangiz uchun rahmat !!!\nBuyurtmalar tayyor bo`lishi bilan sizga bog`lanamiz "<
cout<<"\nDasturni yakunlash uchun 1 ni kiriting "< cout<<"Bosh menyuga qaytish uchun 2 ni kiriting "< int y;
cin>>y;
if(y==2){
system("cls");
goto nish;
}
else
return 0;}
if(n==4){
system("cls");
cout<<"Tikuv sexi ishlarini hisobini yuritish loyihasiga xush kelibsiz !!! "<cout<<"Bizga ishga kirmoqchi bo`lsangiz ro`yhatdan o`tishingiz kerak ." <
cout<<"\nRo`yhatdan o`tish \n"< scan(a[k]);
cout<<"Ro`yhatdan muvafaqqiyatli o`tdingiz !!!\nBo`sh ish o`rni topilishi bilan sizga bog`lanamiz "< cout<<"\nDasturni yakunlash uchun 1 ni kiriting "< cout<<"Bosh menyuga qaytish uchun 2 ni kiriting "< int o;
cin>>o;
if(o==2){
system("cls");
goto nish;
}
else
return 0; }
return 0;
}
Do'stlaringiz bilan baham: