O’zbekiston-Finlandiya pedagogika instituti Aniq-Tabiiy fanlar va Jismoniy madanyat fakulteti Matematika va Informatika yo’nalishi talabasi Abdusalomov Nurshodbekning
Download 177.15 Kb.
|
Abdusalomov Nurshod (5)
# Import required library
import turtle car = turtle.Turtle() # Below code for drawing rectangular upper body car.color('#008000') car.fillcolor('#008000') car.penup() car.goto(0,0) car.pendown() car.begin_fill() car.forward(370) car.left(90) car.forward(50) car.left(90) car.forward(370) car.left(90) car.forward(50) car.end_fill() # Below code for drawing window and roof car.penup() car.goto(100, 50) car.pendown() car.setheading(45) car.forward(70) car.setheading(0) car.forward(100) car.setheading(-45) car.forward(70) car.setheading(90) car.penup() car.goto(200, 50) car.pendown() car.forward(49.50) # Below code for drawing two tyres car.penup() car.goto(100, -10) car.pendown() car.color('#000000') car.fillcolor('#000000') car.begin_fill() car.circle(20) car.end_fill() car.penup() car.goto(300, -10) car.pendown() car.color('#000000') car.fillcolor('#000000') car.begin_fill() car.circle(20) car.end_fill() car.hideturtle() NATIJA : 4.7-rasm Paython dasturlash tilida DIAGRAMMALAR bilan ishlash ham mumkun Ushbu kodni kiritganimizda : import matplotlib.colors as mcolors bc = mcolors.BASE_COLORS np.random.seed(123) groups = [f"P{i}" for i in range(7)] counts = np.random.randint(0, len(bc), len(groups)) width = counts*0.1 colors = [["r", "b", "g"][int(np.random.randint(0, 3, 1))] for _ in counts] plt.bar(groups, counts, width=width, alpha=0.6, bottom=2, color=colors, edgecolor="k", linewidth=2) NATIJA: USHBU DIAGRAMMA HOSIL Bo’ladi 4.8-rasm BIZ ENDI USHBU MASALANI DIAGRAMMASINI DOIRA SHAKLIDA CHIQARAMIZ : Avtosalonda 24 ta Ford ,17 ta Tayota, 53ta BMW, 21 ta AUDI va 35 ta Jaguar Avtomobillari mavjud .ularni diagrammasini Doira Shaklda tuzing Ushbu Kodni kiritganimizdan song bizga
Ushbu Kodni kiritganimizdan song bizga Natija : 4.9-rasm Quyidagi grafik Diagramma hosil boladi: Bu diagrammani Necha Foiz ekanligini ham korsatib beruvchi dastur tuzish ham mumkun :
4.10-rasm #5 HULOSA: Xоzirgi davrni kоmpyutersiz tasavvur etib bo`lmaydi. Infоrmatsiya texnоlоgiyalari bugungi kunda xayotimizning xamma sоxalarini qamrab оlgan. Telekоmmunikatsiya kоmpyuter tarmоqlari va zamоnaviy texnik alоqa vоsitalari negizida ma`lumоtlarni masоfadan uzatishdir. Infоrmatsiya jamiyatning mоddiy va texnоlоgik negizini kоmpyuter texnikasi va kоmpyuter tarmоqlari, Infоrmatsiya texnоlоgiyalari, telekоmmunikatsiya alоqalari asоsidagi turli xil tizimlar tashkil etadi va har bir malumotlar grafik tarzda uzatish namoyish qilish albatta qulay va tushunatrli keying navbatda hozr dunyoni kampyuter va laptoplar orqali real korish ga bolgan talab va video oyinlarning rivojlanib borayotganligini korib turbmiz bunda kampyuter orqali tuzilgan kodlar va suratlar bilan birgalikda korishimiz mumkun boladi Ushbu kurs ishi shaxsiy xayotida katta tarbiyaviy ahamiyatga egadirChunki 21 – asrga kelib dasturlash tillarini rivojlanib borayotganligi shaxsiy qiziqishlarim qatoriga dasturlsh orqali grafiklar namoyish etish ham qoshildi Men ushbu kurs ishidan codlar orqali matematik funksiya va diagrammalar tuzish hamda turli hil tasvirlarni codlar orqali tuzish hamda uni namoyish qilishni o’rgandim FOYDALANILGAN ADABIYOTLAR: MOHIR DEV O’QUV QOLLANMA . SARIQDEV O’QUV QOLLANMA . PAYTHON DASTURLASH ASOSLARI (NARZULAYEV ANVAR). Download 177.15 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling