Сабақтың тақырыбы: Sorting a two-dimensional array, erasing a row



Дата04.04.2023
өлшемі302,78 Kb.
#79403
түріСабақ

Тексерілді

Short term plan

Бөлім

Algorithm programming in the Python programming language



Педагогтың аты-жөні

Срайлова Индира

Күні

27.02-1.03.2023 ж

Сынып 9

Number of participants






Number of absentees






Сабақтың тақырыбы:

Sorting a two-dimensional array, erasing a row



Оқу бағдарламасына сәйкес оқыту мақсаттары



9.3.3.2 - Python programming using two-dimensional arrays
to create programs in the language



Сабақтың мақсаты:

to two-dimensional array elements in the Python programming language
determine the type of referral;
Problems using two-dimensional array elements
programming;
Presenting the code of the two-dimensional array sorting program
.



Сабақтың барысы:



Сабақтың кезені/ уақыт

Педагогтың әрекеті

Оқушының әрекеті

Бағалау

Ресурстар

Сабақтың басы
5 мин.

1. Greeting students.
A brainstorming exercise.
Completing homework
It is given in the textbook on the previous topic
analyzes the solution of tasks in a group.
They value each other



1. Greets the teacher.
2. Writes the topic of the lesson in a notebook.
3. Get acquainted with the goals of the lesson.



Students are evaluated by formative assessment for the purpose of motivation, depending on the activity of participation in the lesson



Жұмыс дәптерлері, дербес компьютер, т.б.

Сабақтың ортасы
35 мин.

Working with brainstorming questions
1.How do you understand the concept of matrix? In which areas is it found in technology?
2.It is presented in the form of a table in everyday life
What are some examples of working with data?
can you quote
Work with the textbook
Acquaintance with new information. Methodology is provided
answers questions individually, in a group, in a team.
The teacher adds.
Practical work
Given a two-dimensional array C[N] [N] (1Delete the row with the most odd elements in this array. The value of the array elements is 100
does not exceed ten.
The array contains the most odd elements
To erase the series, odd numbers are the most
we can save the position of the row. We delete the row using the same place (code 4).
Программаның орындалу нәтижесі 5-суретте
берілген.
4-код
from random import randint
N=int(input()); max=k=0
a = [ [0 for j in range(N)] for i in range(N)]
for i in range(0, N):
for j in range(0,N):
a[i][j]=randint(1,50)
for i in (a):
print(i)
for i in range(0, N):
k=0
for j in range(0,N):
if a[i][j] % 2 == 1:
k+=1(тақ элементтерді санайды)
if k> max:
max=k;p=i; (тақ элементі көп қатардың)
print() нөмірін р-ға сақтайды)
a.remove(a[p]) (р қатарын өшіреді)
for i in (a): (массивті баспаға береді)
print(i)



Жұптық жұмыс


The largest and smallest of a two-dimensional array
find the rows in which the elements
please suggest the program code to disable it.
If the largest and smallest element are in the same row
if located, then only that row should be deleted.
Students' works "Temperature"
method evaluation. To the thermometer scale
by writing the students' names.



Мұғалімді тыңдайды

Арифметикалық өрнектерді орындау ережелерін дәптерге жазады


Анықтамасын дәптерге жазады


Кестемен танысады


1-тапсырманы орындайды

2-тапсырманы орындайды



Оқушылар сабаққа қатысу белсенділігіне қарай, ынталандыру мақсатында қалыптастырушы бағалау бойынша бағаланады

Дескриптор


Екі өлшемді массив элементтерін анықтайды.
Python программалау тілінде программалай
алады.
Топтық жұмыс
Екі өлшемді массивтерді сұрыптау және қатарды
өшіру программасын талдаңдар. Программаның
әрбір қатарының қандай қызмет орындайтынын
анықтаңдар.



Жұмыс дәптерлері, дербес компьютер, т.б.

Сабақтың соңы
5 мин.

1. Organizes self-assessment for students.
2. Feedback:




Өзін-өзі бағалау.

Оқушылар сабаққа қатысу белсенділігіне қарай, ынталандыру мақсатында қалыптастырушы бағалау бойынша бағаланады

Жұмыс дәптерлері, дербес компьютер, т.б.

Үй тапсырмасы

Complete the task given in the textbook











Достарыңызбен бөлісу:




©emirsaba.org 2024
әкімшілігінің қараңыз

    Басты бет