Passport
#include
#include
#include
using namespace std;
class passport
{ string fam;
string ism;
string sharif;
string tugilganyil;
string tugilganjoyi;
string millati;
string jinsi;
string beroy;
string amalmuddatoy;
string kimtomonidanberilgani;
string pasportraqami;
public:
void raqam1()
{ fam="Botirov";
ism="Abdiraxim";
sharif="Qozoqivich ";
tugilganyil="1975";
tugilganjoyi="Samarqand";
kimtomonidanberilgani="Qoshrobod IIB";
millati="o`zbek";
jinsi="ERKAK";
pasportraqami="AB5754854";
beroy="12.05.1990";
amalmuddatoy="12.05.2000"; }
void raqam2()
{ fam="Botirova";
ism="Nigora";
sharif="Norbekovna";
tugilganyil="1977";
tugilganjoyi="Samarqand";
kimtomonidanberilgani="Qoshrobod IIB";
millati="o`zbek";
jinsi="Ayol";
pasportraqami="AB7412587";
beroy="07.07.1997";
amalmuddatoy="07.07.2007";
}
void raqam3()
{ fam="Qozoqov";
ism="Shohrux";
sharif="Abdirahim ogli";
tugilganyil="2002";
tugilganjoyi="Jizzax";
kimtomonidanberilgani="Paxtakor IIB";
millati="o`zbek";
jinsi="ERKAK";
pasportraqami="AB2301021";
beroy="02.06.2017";
amalmuddatoy="02.06.2027"; }
void raqam4(){
fam="Qozoqov";
ism="Farrux";
sharif="Abdirahim o'g'li";
tugilganyil="2000";
tugilganjoyi="jizzax";
kimtomonidanberilgani="Jizzax IIB";
millati="o`zbek";
jinsi="Erkak";
pasportraqami="AB9658471";
beroy="12.02.2012";
amalmuddatoy="12.002.2022";
}
void chiqar()
{int i;
cout<<" O'ZBEKISTON RESPUBLIKASI \n";
cout<<"FAMILYASI \n";
cout<
cout<<"ISMI |JINSI \n";
cout<
cout<<"OTASINING ISMI \n";
cout<
cout<<"TUG'ILGAN SANASI |TUG'ILGAN JOYI \n";
cout<
cout<<"MILLATI \n";
cout<
cout<<"KIM TOMONIDAN BERILGAN \n";
cout<
cout<<" _________________________________ \n";
cout<<" SHAXSIY IMZO / HOLDER'S SIGNATURE \n";
cout<<"\n";
cout<<" O'ZBEKISTON RESPUBLIKASI/REPUBLIC OF UZBEKISTAN \n";
cout<<"_______________________________________________________________________________\n";
cout<<"PASPORT / PASSPORT | TURI / TYPE | DAVLAT KODI / COUNTRY CODE | PASPORT RAQAMI\n";
cout<<" | P | UZB | "<
cout<<" *** FAMILYASI / SURNAME \n";
cout<<" ******* "<
cout<<" ********* ISM / GIVEN NAMES \n";
cout<<" ******* "<
cout<<" *** FUQAROLIGI / NATIONALITY \n";
cout<<" *********** UZBEKISTAN \n";
cout<<" ************* TUG'ILGAN SANASI / DATE OF BIRTH \n";
cout<<" *************** "<
cout<<" *************** JINSI / SEX | TUG'ILGAN JOYI / PLACE OF BIRTH \n";
cout<<" "<
cout<<" BERILGAN SANASI/DATE OF ISSUE | PERSONALLASHTIRISH ORGAN\n";
cout<<" "<
cout<<" AMAL QILISH MUDDATI/DATE OF EXPIR|CENTRE \n";
cout<<" "<
cout<<" P
cout<<" "<
}
};
int main(){
int i,n;
cin.ignore();
passport pas;
cout<<"\n1.Otamning pasporti:\n";
cout<<"2.Onamning pasporti:\n";
cout<<"3.O`zimning pasporti:\n";
cout<<"4.Akamning pasporti :\n";
cout<<"5.Dasturni qayta korish:\n";
cin>>i;
switch(i)
{
case 1:{pas.raqam1();pas.chiqar();break;}
case 2:{pas.raqam2();pas.chiqar();break;}
case 3:{pas.raqam3();pas.chiqar();break;}
case 4:{pas.raqam4();pas.chiqar();break;}
case 5:{};break;
}
return main();}
lms
#include
#include
using namespace std;
class lms{
int bal1;
int bal2;
int bal3;
int max1;
int max2;
int max3;
int toplangan_bal;
int maxbal,hozirgi_bahosi;
float ozlashtirish;
public:
void kirit1(){
ofstream faylgayoz (" D:\\shohrux.txt" ,ios::app);
if(!faylgayoz.is_open())
faylgayoz.open(" D:\\shohrux.txt" ,ios::app);
cout<<"1-mustaqil ishi maksimal bali: ";cin>>max1;
cout<<"2-mustaqil ishi maksimal bali: ";cin>>max2;
cout<<"Oraliq nazorat maksimal bali: ";cin>>max3;
cout<<"1-mustaqil ishi talabaning bali: ";cin>>bal1;
cout<<"2-mustaqil ishi talabaning bali: ";cin>>bal2;
cout<<"Oraliq nazorat bo'yicha talabaning bali: ";cin>>bal3;
faylgayoz << max1 <
faylgayoz << max2 <
faylgayoz << max3 <
faylgayoz << bal1 <
faylgayoz << bal2 <
faylgayoz << bal3 <
faylgayoz.close();
}
void kirit2(){
ofstream faylgayoz (" D:\\shohrux.txt" ,ios::app);
if(!faylgayoz.is_open())
faylgayoz.open(" D:\\shohrux.txt" ,ios::app);
cout<<"1-mustaqil ishi maksimal bali: ";cin>>max1;
cout<<"2-mustaqil ishi maksimal bali: ";cin>>max2;
cout<<"Oraliq nazorat maksimal bali: ";cin>>max3;
cout<<"1-mustaqil ishi talabaning bali: ";cin>>bal1;
cout<<"2-mustaqil ishi talabaning bali: ";cin>>bal2;
cout<<"Oraliq nazorat bo'yicha talabaning bali: ";cin>>bal3;
faylgayoz << max1 <
faylgayoz << max2 <
faylgayoz << max3 <
faylgayoz << bal1 <
faylgayoz << bal2 <
faylgayoz << bal3 <
faylgayoz.close();
}
void kirit3(){
ofstream faylgayoz (" D:\\shohrux.txt" ,ios::app);
if(!faylgayoz.is_open())
faylgayoz.open(" D:\\shohrux.txt" ,ios::app);
cout<<"1-mustaqil ishi maksimal bali: ";cin>>max1;
cout<<"2-mustaqil ishi maksimal bali: ";cin>>max2;
cout<<"Oraliq nazorat maksimal bali: ";cin>>max3;
cout<<"1-mustaqil ishi talabaning bali: ";cin>>bal1;
cout<<"2-mustaqil ishi talabaning bali: ";cin>>bal2;
cout<<"Oraliq nazorat bo'yicha talabaning bali: ";cin>>bal3;
faylgayoz << max1 <
faylgayoz << max2 <
faylgayoz << max3 <
faylgayoz << bal1 <
faylgayoz << bal2 <
faylgayoz << bal3 <
faylgayoz.close();
}
void kirit4(){
ofstream faylgayoz (" D:\\shohrux.txt" ,ios::app);
if(!faylgayoz.is_open())
faylgayoz.open(" D:\\shohrux.txt" ,ios::app);
cout<<"1-mustaqil ishi maksimal bali: ";cin>>max1;
cout<<"2-mustaqil ishi maksimal bali: ";cin>>max2;
cout<<"Oraliq nazorat maksimal bali: ";cin>>max3;
cout<<"1-mustaqil ishi talabaning bali: ";cin>>bal1;
cout<<"2-mustaqil ishi talabaning bali: ";cin>>bal2;
cout<<"Oraliq nazorat bo'yicha talabaning bali: ";cin>>bal3;
faylgayoz << max1 <
faylgayoz << max2 <
faylgayoz << max3 <
faylgayoz << bal1 <
faylgayoz << bal2 <
faylgayoz << bal3 <
faylgayoz.close();
}
void chiqar1(){
toplangan_bal=bal1+bal2+bal3; maxbal=max1+max2+max3;
ozlashtirish=(toplangan_bal*1./maxbal)*100;
if(ozlashtirish>90) hozirgi_bahosi=5;else if(ozlashtirish>=70&&ozlashtirish<90) hozirgi_bahosi=4;else
if(ozlashtirish>=600&&ozlashtirish<70) hozirgi_bahosi=3;else hozirgi_bahosi=2;
cout<<" _________________________________________________________________________\n";
cout<<" |To'plagan | Maks. | O'zlashtirishi | Hozirgi |\n";
cout<<" | bal | bal | "<
cout<<" | "<
cout<<" |______________|______________|_________________________|________________|\n";
cout<<" O'qituvchi Topshiriq Topshiriq muddati Bal|Maks Fayl \n";
cout<<" Gulyamova Dilfuza 1-mustaqil ish 28-11-2019 23:59:59 "<
cout<<" Gulyamova Dilfuza 2-mustaqil ish 14-12-2019 23:59:59 "<
cout<<" Gulyamova Dilfuza Oraliq nazorat 12-12-2019 23:59:59 "<
}
void chiqar2(){
toplangan_bal=bal1+bal2+bal3; maxbal=max1+max2+max3;
ozlashtirish=(toplangan_bal*1./maxbal)*100;
if(ozlashtirish>90) hozirgi_bahosi=5;else if(ozlashtirish>=70&&ozlashtirish<90) hozirgi_bahosi=4;else
if(ozlashtirish>=600&&ozlashtirish<70) hozirgi_bahosi=3;else hozirgi_bahosi=2;
cout<<" _________________________________________________________________________\n";
cout<<" |To'plagan | Maks. | O'zlashtirishi | Hozirgi |\n";
cout<<" | bal | bal | "<
cout<<" | "<
cout<<" |______________|______________|_________________________|________________|\n";
cout<<" O'qituvchi Topshiriq Topshiriq muddati Bal|Maks Fayl \n";
cout<<" Sadaddinova S 1-mustaqil ish 28-11-2019 23:59:59 "<
cout<<" Sadaddinova S 2-mustaqil ish 14-12-2019 23:59:59 "<
cout<<" Sadaddinova S Oraliq nazorat 12-12-2019 23:59:59 "<
}
void chiqar3(){
toplangan_bal=bal1+bal2+bal3; maxbal=max1+max2+max3;
ozlashtirish=(toplangan_bal*1./maxbal)*100;
if(ozlashtirish>90) hozirgi_bahosi=5;else if(ozlashtirish>=70&&ozlashtirish<90) hozirgi_bahosi=4;else
if(ozlashtirish>=600&&ozlashtirish<70) hozirgi_bahosi=3;else hozirgi_bahosi=2;
cout<<" _________________________________________________________________________\n";
cout<<" |To'plagan | Maks. | O'zlashtirishi | Hozirgi |\n";
cout<<" | bal | bal | "<
cout<<" | "<
cout<<" |______________|______________|_________________________|________________|\n";
cout<<" O'qituvchi Topshiriq Topshiriq muddati Bal|Maks Fayl \n";
cout<<" Abduqodirov M 1-mustaqil ish 28-11-2019 23:59:59 "<
cout<<" Abduqodirov M 2-mustaqil ish 14-12-2019 23:59:59 "<
cout<<" Abduqodirov M Oraliq nazorat 12-12-2019 23:59:59 "<
}
void chiqar4(){
toplangan_bal=bal1+bal2+bal3; maxbal=max1+max2+max3;
ozlashtirish=(toplangan_bal*1./maxbal)*100;
if(ozlashtirish>90) hozirgi_bahosi=5;else if(ozlashtirish>=70&&ozlashtirish<90) hozirgi_bahosi=4;else
if(ozlashtirish>=600&&ozlashtirish<70) hozirgi_bahosi=3;else hozirgi_bahosi=2;
cout<<" _________________________________________________________________________\n";
cout<<" |To'plagan | Maks. | O'zlashtirishi | Hozirgi |\n";
cout<<" | bal | bal | "<
cout<<" | "<
cout<<" |______________|______________|_________________________|________________|\n";
cout<<" O'qituvchi Topshiriq Topshiriq muddati Bal|Maks Fayl \n";
cout<<" Rahimova Sevara 1-mustaqil ish 28-11-2019 23:59:59 "<
cout<<" Rahimova Sevara 2-mustaqil ish 14-12-2019 23:59:59 "<
cout<<" Rahimova Sevara Oraliq nazorat 12-12-2019 23:59:59 "<
}};
int main(){
int n;
lms ls;
cout << "1-fan dasturlashga kirish\n";
cout << "2-fan Calclusga kirish\n";
cout << "3-fan fizikaga kirish\n";
cout << "4-fan inglizga kirish\n";
cout << "5 : Dasturni qayta yuklash\n"; cin >> n;
switch(n){
case 1:{ls.kirit1();ls.chiqar1();break;}
case 2:{ls.kirit2();ls.chiqar2();break;}
case 3:{ls.kirit3();ls.chiqar3();break;}
case 4:{ls.kirit4();ls.chiqar4();break;}
case 5:{ };break;
}
cout << " \n\n";
return main();}
Burj
#include
#include
using namespace std;
class burj {
int sana;
int oy;
public:
void kirit(){
cout<<"Tug'ilgan kuninggizni kiriting: ";cin>>sana;
cout<<"Tug'ilgan oyinggizni kiriting: ";cin>>oy;
}
int qaytar(){
return oy;
}
int qaytar2(){
return sana;
}
};
int main(){
int i,j;
burj b;
b.kirit();
if(b.qaytar()==3&&b.qaytar2()>=21||(b.qaytar2()<=20&&b.qaytar()==4)) cout<<"burjungiz: qo`y";
if(b.qaytar()==8&&b.qaytar2()>=24||(b.qaytar2()<=24&&b.qaytar()==9)) cout<<"burjungiz: parizot";
if(b.qaytar()==10&&b.qaytar2()>=24||(b.qaytar2()<=23&&b.qaytar()==11)) cout<<"burjungiz: chayon";
if(b.qaytar()==7&&b.qaytar2()>=23||(b.qaytar2()<=23&&b.qaytar()==8)) cout<<"burjungiz: arslon";
if(b.qaytar()==2&&b.qaytar2()>=20||(b.qaytar2()<=20&&b.qaytar()==3)) cout<<"burjungiz: baliq";
if(b.qaytar()==11&&b.qaytar2()>=23||(b.qaytar2()<=21&&b.qaytar()==12)) cout<<"burjungiz: o`q otar";
if(b.qaytar()==6&&b.qaytar2()>=22||(b.qaytar2()<=22&&b.qaytar()==7)) cout<<"burjungiz: qisqichbaqa";
if(b.qaytar()==12&&b.qaytar2()>=22||(b.qaytar2()<=20&&b.qaytar()==1)) cout<<"burjungiz: tog` echkisi";
if(b.qaytar()==9&&b.qaytar2()>=24||(b.qaytar2()<=23&&b.qaytar()==10)) cout<<"burjungiz: taruzu";
if(b.qaytar()==5&&b.qaytar2()>=21||(b.qaytar2()<=21&&b.qaytar()==6)) cout<<"burjungiz: egizaklar";
if(b.qaytar()==1&&b.qaytar2()>=21||(b.qaytar2()<=20&&b.qaytar()==2)) cout<<"burjungiz: qovg`a";
if(b.qaytar()==4&&b.qaytar2()>20||(b.qaytar2()<=20&&b.qaytar()==5)) cout<<"burjungiz: buzoq";
cout << "\n";
return main();}
Do'stlaringiz bilan baham: |