Foydalanilgan adabiyotlar:
1.To’lqinov Jahongirmirzo ,,C++ tilini mustaqil o’rganuvchilar uchun”
2.Rahimov Q.S, Karimova Sh.T ,,C++ tilida dasturlash” o’quv qo’llanma// TATU, Toshkent 2017
3. M.Q.Berdimuratov, B.S.Samandarov, R.T.Djumamuratov,,C++ o’quv qo’llanma”
4. B. Boltayev, A.R. Azamatov ,,C++ tili asoslari”.Toshkent 2021
Internet manbalari:
1. www.cyber-form.ru
2.www.wikipedia.org
3.www.programmer.com
4.www.lib.samtuit.uz
5.www.n.ziyouz.com
Ilova:
Dasturning kod qismi
#include
using namespace std;
class ishxona
{
public:
int SONI;
string dNomi;
int narxi;
};
int main()
{
int SONI,SONI1,oy;
bool yn;
ishxona a,b,c,d,e,f,g,v,h,i,j,k,m,l,p;
a.SONI=1;
a.dNomi="Sobirov Og'abek";
a.narxi=1000000;
b.SONI=2;
b.dNomi="Xusanov Diyorbek";
b.narxi=1200000;
c.SONI=3;
c.dNomi="Vohobov Asilbek";
c.narxi=2000000;
d.SONI=4;
d.dNomi="Normatov Xumoyun";
d.narxi=2000000;
e.SONI=5;
e.dNomi="Nabiyev Omadjon";
e.narxi=2000000;
f.SONI=6;
f.dNomi="G'aniyev Axliyor";
f.narxi=1500000;
j.SONI=7;
j.dNomi="Qo'ziyev Xusniddin";
j.narxi=2000000;
k.SONI=8;
k.dNomi="Murodjonova Feruzabonu";
k.narxi=2200000;
v.SONI=9;
v.dNomi="Turonova Durdonaxon";
v.narxi=1000000;
p.SONI=10;
p.dNomi="Raimberdiyev Sirojiddin";
p.narxi=1500000;
i.SONI=11;
i.dNomi="Tursunov Asadbek";
i.narxi=1400000;
g.SONI=12;
g.dNomi="Abduholiqov Abdulaziz";
g.narxi=2500000;
h.SONI=13;
h.dNomi="Xudoyberdiyev G'iyosjon";
h.narxi=3000000;
m.SONI=14;
m.dNomi="Nazirova Sayyoraxon";
m.narxi=4500000;
l.SONI=15;
l.dNomi="Xayitboyev Elbekjon";
l.narxi=6000000;
cout<<"Ishxona xodimlari jadvali:"<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
cout<
//kirim bolimi
nishon:cout<<"Xodim nomerini kiriting: ";cin>>SONI;
cout<<"Nechi oylik ish haqini hisoblamoqchisiz: ";cin>>oy;
switch(SONI)
{
case 1:cout<<" Sobirov Og'abek "<
case 2:cout<<" Xusanov Diyorbek "<
case 3:cout<<" Vohobov Asilbek "<
case 4:cout<<" Normatov Xumoyun"<
case 5:cout<<" Nabiyev Omadjon "<
case 6:cout<<" G'aniyev Axliyor "<
case 7:cout<<" Qo'ziyev Xusniddin "<
case 8:cout<<" Murodjonova Feruzabonu "<
case 9:cout<<" Turonova Durdonaxon "<
case 10:cout<<" Raimberdiyev Sirojiddin "<
case 11:cout<<" Tursunov Asadbek "<
case 12:cout<<" Abduholiqov Abdulaziz "<
case 13:cout<<" Xudoyberdiyev G'iyosjon "<
case 14:cout<<" Nazirova Sayyoraxon "<
case 15:cout<<" Xayitboyev Elbekjon "<
default: cout<<"Bunday Nomerda hodim yoq"<
}
cout<<"Yana biror xodimni oylik ish haqini bilish uchun 1 ni bosing: ";cin>>yn;
if(yn==1){
goto nishon;}
return 0;
}
Do'stlaringiz bilan baham: |