Материалдар / Input comments

Input comments

Материал туралы қысқаша түсінік
Бұл материал 8 сыныпта ағылшын тілінде информатика пәніндегі "Input comments" тақырыбына қосымша тірек сызба ретінде қолдануға болатын презентация
Бұл бетте материалдың қысқаша нұсқасы ұсынылған. Материалдың толық нұсқасын жүктеп алып, көруге болады
img_page_1
20 Наурыз 2019
1051
Материал жариялап, аттестацияға 100% жарамды сертификатты тегін алыңыз!
Ustaz tilegi журналы министірліктің тізіміне енген. Qr коды мен тіркеу номері беріледі. Материал жариялаған соң сертификат тегін бірден беріледі.
Оқу-ағарту министірлігінің ресми жауабы
Сайтқа 5 материал жариялап, тегін АЛҒЫС ХАТ алыңыз!
Қазақстан Республикасының білім беру жүйесін дамытуға қосқан жеке үлесі үшін және де Республика деңгейінде «Ustaz tilegi» Республикалық ғылыми – әдістемелік журналының желілік басылымына өз авторлық материалыңызбен бөлісіп, белсенді болғаныңыз үшін алғыс білдіреміз!
Сайтқа 25 материал жариялап, тегін ҚҰРМЕТ ГРОМАТАСЫН алыңыз!
Тәуелсіз Қазақстанның білім беру жүйесін дамытуға және білім беру сапасын арттыру мақсатында Республика деңгейінде «Ustaz tilegi» Республикалық ғылыми – әдістемелік журналының желілік басылымына өз авторлық жұмысын жариялағаны үшін марапатталасыз!
Ресми байқаулар тізімі
Республикалық байқауларға қатысып жарамды дипломдар алып санатыңызды көтеріңіз!
Материалдың қысқаша түсінігі

1 слайд

1 слайд

3.4 INPUT. COMMENTS

2 слайд
3.4 INPUT. COMMENTS

2 слайд

3.4 INPUT. COMMENTS

You will: • apply input commands to enter data; • solve mathematical problems.

3 слайд
You will: • apply input commands to enter data; • solve mathematical problems.

3 слайд

You will: • apply input commands to enter data; • solve mathematical problems.

Terminology • object - нысан - объект • nevertheless - соған қарамастан - тем не менее • container - контейнер - контейнер • t

4 слайд
Terminology • object - нысан - объект • nevertheless - соған қарамастан - тем не менее • container - контейнер - контейнер • to confuse - шатастыру - запутывать • relevant - орынды - c оответствующий • bucket - шелек - ведро • to refer - жүгіну – обращаться • whole numbers - бүтін сандар - целые числа • several - бірнеше - несколько • fractional numbers - бөлшек сандар - дробные числа • to remain - қалу - оставаться • editorial - редакциялық - редакционный

4 слайд

Terminology • object - нысан - объект • nevertheless - соған қарамастан - тем не менее • container - контейнер - контейнер • to confuse - шатастыру - запутывать • relevant - орынды - c оответствующий • bucket - шелек - ведро • to refer - жүгіну – обращаться • whole numbers - бүтін сандар - целые числа • several - бірнеше - несколько • fractional numbers - бөлшек сандар - дробные числа • to remain - қалу - оставаться • editorial - редакциялық - редакционный

5 слайд

5 слайд

Input data • A computer program (software) consists of three parts: Input, Process and Output. • Input (data entry) is the proce

6 слайд
Input data • A computer program (software) consists of three parts: Input, Process and Output. • Input (data entry) is the process of entering data. • In Python, this process is performed through the command “ Input ()”. x = input (‘Enter the data’) #gets data as string (text) • The variable x is by default a text value. a = int (input (‘Enter the data’) #gets data as int (number) • To enter integers, add int () for integers and float () for fractional numbers.

6 слайд

Input data • A computer program (software) consists of three parts: Input, Process and Output. • Input (data entry) is the process of entering data. • In Python, this process is performed through the command “ Input ()”. x = input (‘Enter the data’) #gets data as string (text) • The variable x is by default a text value. a = int (input (‘Enter the data’) #gets data as int (number) • To enter integers, add int () for integers and float () for fractional numbers.

Comments • Sometimes programmers leave notes in different areas. code for explanation or warning. • Such notes are called commen

7 слайд
Comments • Sometimes programmers leave notes in different areas. code for explanation or warning. • Such notes are called comments and do not are perceived by the compiler. There are two ways to enter comments. 1. To add comments, the character “#” and after it is the text itself. The compiler will ignore everything what is written after the “#” on this line. Example: • Code: #This is a comment, it begins with a ‘#’ sing #and the computer will ignore it • print (“This is not a comment, the computer will ”) • print (“run this and print it.”) • Output: This is not a comment, this and print it.

7 слайд

Comments • Sometimes programmers leave notes in different areas. code for explanation or warning. • Such notes are called comments and do not are perceived by the compiler. There are two ways to enter comments. 1. To add comments, the character “#” and after it is the text itself. The compiler will ignore everything what is written after the “#” on this line. Example: • Code: #This is a comment, it begins with a ‘#’ sing #and the computer will ignore it • print (“This is not a comment, the computer will ”) • print (“run this and print it.”) • Output: This is not a comment, this and print it.

Comments 2. To comment on a piece of text three single apostrophes (‘‘ ‘) are used at the beginning and in end of text. Code:

8 слайд
Comments 2. To comment on a piece of text three single apostrophes (‘‘ ‘) are used at the beginning and in end of text. Code: ''' print(“We are in a comment”) print (“We are still in a comment”) ''' print(“We are out of the comment”) Output: We are out of the comment

8 слайд

Comments 2. To comment on a piece of text three single apostrophes (‘‘ ‘) are used at the beginning and in end of text. Code: ''' print(“We are in a comment”) print (“We are still in a comment”) ''' print(“We are out of the comment”) Output: We are out of the comment

How to solve problems Apples You have N apples in a basket. And K students want to divide these apples equally. You cannot div

9 слайд
How to solve problems Apples You have N apples in a basket. And K students want to divide these apples equally. You cannot divide an apple into several parts. So it remains in the basket. 1. Calculate how many apples each student will have. 2. Calculate how many apples will remain in the basket. Input data: You will have two inputs. First input is number of students (K). Second input is number of apples (N). Output data: You will have two outputs. The fi rst output is number of apples given to each student. The second is number of apples that remain in the basket

9 слайд

How to solve problems Apples You have N apples in a basket. And K students want to divide these apples equally. You cannot divide an apple into several parts. So it remains in the basket. 1. Calculate how many apples each student will have. 2. Calculate how many apples will remain in the basket. Input data: You will have two inputs. First input is number of students (K). Second input is number of apples (N). Output data: You will have two outputs. The fi rst output is number of apples given to each student. The second is number of apples that remain in the basket

Sample tests:

10 слайд
Sample tests:

10 слайд

Sample tests:

EDITORIAL Now let us talk about how to solve problems. Read the problem carefully. Pay attention on what you should find. In

11 слайд
EDITORIAL Now let us talk about how to solve problems. Read the problem carefully. Pay attention on what you should find. In this problem we must find number of apples given to each student and number of apples that remain in basket: To find number of apples given to each student we just divide N by K. answer1 = n / k To find number of apples that remain in the basket we use modulus sign (%) to calculate remainder of division of N by K answer2 =n % k Entire code will look like this: k, n = map(int,input().split()) print ( n / k , ” “ , n % k )

11 слайд

EDITORIAL Now let us talk about how to solve problems. Read the problem carefully. Pay attention on what you should find. In this problem we must find number of apples given to each student and number of apples that remain in basket: To find number of apples given to each student we just divide N by K. answer1 = n / k To find number of apples that remain in the basket we use modulus sign (%) to calculate remainder of division of N by K answer2 =n % k Entire code will look like this: k, n = map(int,input().split()) print ( n / k , ” “ , n % k )

I liked the lesson I didn’t like the lesson The lesson was … interesting useful boring

12 слайд
I liked the lesson I didn’t like the lesson The lesson was … interesting useful boring

12 слайд

I liked the lesson I didn’t like the lesson The lesson was … interesting useful boring

Министірлікпен келісілген курстар тізімі