5-rasm. Xodimlarning xarajati va har bitta do’konga ketgan xarajatlar
21,600
23,400
43,200
37,800
0
10,000
20,000
30,000
40,000
50,000
B1
B2
B3
B4
Ishchi xarajatlari xar bir do'kon uchun
B 1
B 2
B 3
B 4
77,612
112,413
150,224
110,821
XAR BITA DO'KONGA KETGAN
XARAJAR
# shokolad 3000
# ishchi pul 1800
kg1 = int(input("KG_B1:"))
kg2 = int(input("KG_B2:"))
kg3 = int(input("KG_B3:"))
kg4 = int(input("KG_B4:"))
dostavka1 = int(input("dostavka_km_B1: "))
dostavka2 = int(input("dostavka_km_B2: "))
dostavka3 = int(input("dostavka_km_B3: "))
dostavka4 = int(input("dostavka_km_B4: "))
print(" |----------------------|----------------------------------------------|")
print(f" | Zavod | B1 | B2 | B3 | B4 | 1 kunga jami |")
print(" |----------------------|----------------------------------------------|")
print(f" | KG | {kg1} | {kg2} | {kg3} | {kg4} |
{kg1+kg2+kg3+kg4} |")
print(" |----------------------|----------------------------------------------|")
print(f" | Shokolad xarajatlari | {kg1*3000} | {kg2*3000} | {kg3*3000} |
{kg4*3000} | {kg1*3000+kg2*3000+kg3*3000+kg4*3000} |")
print(" |----------------------|----------------------------------------------|")
print(f" | Ishchi puli | {kg1*1800} | {kg2*1800} | {kg3*1800} | {kg4*1800} |
{kg1*1800+kg2*1800+kg3*1800+kg4*1800} |")
print(" |----------------------|----------------------------------------------|")
print(f" | Yo`l dostavka | {dostavka1*5000} | {dostavka2*5000} |
{dostavka3*5000} | {dostavka4*5000} |
{dostavka1*5000+dostavka2*5000+dostavka3*5000+dostavka4*5000} |")
print(" |----------------------|----------------------------------------------|")
print(f" | Jami | {kg1*3000+kg1*1800+dostavka1*5000} |
{kg2*3000+kg2*1800+dostavka2*5000} |
{kg3*3000+kg3*1800+dostavka3*5000} |
{kg4*3000+kg4*1800+dostavka4*5000} |
{(kg1*3000+kg1*1800+dostavka1*5000)+(kg2*3000+kg2*1800+dostavka2*5000
)+(kg3*3000+kg3*1800+dostavka3*5000)+(kg4*3000+kg4*1800+dostavka4*500
0)} |")
print(" |----------------------|----------------------------------------------|")
6-rasm. Sarf xarajatlarni Python dasturlash tilidagi ko’rinishi.
8-rasm. Yo'lga ketadigan masofa xar bir do'kon uchun
9-rasm. Yo'lga ketadigan vaqt xar bir do'kon uchun
B1
B2
B3
B4
4
10
7
2
YO'LGA KETADIGAN MASOFA XAR BIR DO'KON
UCHUN
0
5
10
15
20
B1
B2
B3
B4
8
20
14
4
Yo'lga ketadigan vaqt xar bir do'kon
uchun
7-rasm. Transport sarf xarajatlarni Python dasturlash tilidagi ko’rinishi.
Xulosa
Ushbu amalitoyda transport masalasini yechilishi va dasturiy taminotini yaratishini
o’rgandik va bu amaliyotda shokolad fabrikasida kunlik xarajatlarini ishlab chiqish
uchun dasturini ishlab chiqdik va shu bilan birgalikda transport muammosini ko'rib
chiqdik va muvozanatli va muvozanatsiz transport muammolarini hal qilish uchun
algoritmidan foydalanishni ko'rsatdik.