🗊Презентация 1D and 2D arrays

Категория: Информатика
Нажмите для полного просмотра!
1D and 2D arrays, слайд №11D and 2D arrays, слайд №21D and 2D arrays, слайд №31D and 2D arrays, слайд №41D and 2D arrays, слайд №51D and 2D arrays, слайд №61D and 2D arrays, слайд №71D and 2D arrays, слайд №81D and 2D arrays, слайд №91D and 2D arrays, слайд №101D and 2D arrays, слайд №111D and 2D arrays, слайд №121D and 2D arrays, слайд №131D and 2D arrays, слайд №141D and 2D arrays, слайд №151D and 2D arrays, слайд №161D and 2D arrays, слайд №171D and 2D arrays, слайд №181D and 2D arrays, слайд №191D and 2D arrays, слайд №201D and 2D arrays, слайд №211D and 2D arrays, слайд №221D and 2D arrays, слайд №23

Вы можете ознакомиться и скачать презентацию на тему 1D and 2D arrays. Доклад-сообщение содержит 23 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


1D and 2D arrays, слайд №1
Описание слайда:

Слайд 2





Цель обучения (Learning objectives):
Описание слайда:
Цель обучения (Learning objectives):

Слайд 3





Критерии успеха (Successful criteria):
Описание слайда:
Критерии успеха (Successful criteria):

Слайд 4





Questions for discussion
What are arrays?
How to determine the name of the array, the dimension of the array, the index of the element, the elements of the array, the types of elements of the array.
How to declare an array data type in a variable section
Описание слайда:
Questions for discussion What are arrays? How to determine the name of the array, the dimension of the array, the index of the element, the elements of the array, the types of elements of the array. How to declare an array data type in a variable section

Слайд 5


1D and 2D arrays, слайд №5
Описание слайда:

Слайд 6





An array is a named set of the same type of data that is stored in memory consecutively one after the other.
An array is a named set of the same type of data that is stored in memory consecutively one after the other.
Access to the elements of the array is carried out by the index (number) of the element.
An array can contain elements of any data type (integer, real, character, string).
The number of elements in an array is called the size of the array.
Описание слайда:
An array is a named set of the same type of data that is stored in memory consecutively one after the other. An array is a named set of the same type of data that is stored in memory consecutively one after the other. Access to the elements of the array is carried out by the index (number) of the element. An array can contain elements of any data type (integer, real, character, string). The number of elements in an array is called the size of the array.

Слайд 7





Declaration of an array in the variable section
Описание слайда:
Declaration of an array in the variable section

Слайд 8





Initializing array elements
1 variant
int [] к; //к — array
k= nеw int [3];  //Define an array of 3 integers
к[0]=-5; к[1]=4; к[2]=55;  // Set array elements

2 variant
int[] а = {0, 2, 4, 6, 8};

3 variant
int[] а = nеw int [] {0, 2, 4, 6, 8};

4 variant
int[] а=nеw int[5];
а[0] = 0; а[1] = 2; а[2] = 4; а[3] = 6; а[4] = 8;
Описание слайда:
Initializing array elements 1 variant int [] к; //к — array k= nеw int [3]; //Define an array of 3 integers к[0]=-5; к[1]=4; к[2]=55; // Set array elements 2 variant int[] а = {0, 2, 4, 6, 8}; 3 variant int[] а = nеw int [] {0, 2, 4, 6, 8}; 4 variant int[] а=nеw int[5]; а[0] = 0; а[1] = 2; а[2] = 4; а[3] = 6; а[4] = 8;

Слайд 9


1D and 2D arrays, слайд №9
Описание слайда:

Слайд 10





Task: One-dimensional array is given. You need to calculate the sum of the elements of this array. The value of the elements is set randomly.
Task: One-dimensional array is given. You need to calculate the sum of the elements of this array. The value of the elements is set randomly.
private void button1_Click(object sender, EventArgs e)
        {
            Random rd = new Random();
            int[] mass = new int[5];
            int  i, s = 0;
            for (i = 0; i<mass.Length; i++) 
            {
                mass[i] = rd.Next(5);
                s = s + mass[i];
                listBox1.Items.Add(mass[i]);                
            }            
            label1.Text = Convert.toString(s);
        }
Описание слайда:
Task: One-dimensional array is given. You need to calculate the sum of the elements of this array. The value of the elements is set randomly. Task: One-dimensional array is given. You need to calculate the sum of the elements of this array. The value of the elements is set randomly. private void button1_Click(object sender, EventArgs e) { Random rd = new Random(); int[] mass = new int[5]; int i, s = 0; for (i = 0; i<mass.Length; i++) { mass[i] = rd.Next(5); s = s + mass[i]; listBox1.Items.Add(mass[i]); } label1.Text = Convert.toString(s); }

Слайд 11





Exercise #1
Описание слайда:
Exercise #1

Слайд 12


1D and 2D arrays, слайд №12
Описание слайда:

Слайд 13





Exercise #2
Описание слайда:
Exercise #2

Слайд 14





Exercise #3
Описание слайда:
Exercise #3

Слайд 15





Exercise #4
Описание слайда:
Exercise #4

Слайд 16





Exercise #5
Output ten array elements in line in a space.
Write fragment of code.
Описание слайда:
Exercise #5 Output ten array elements in line in a space. Write fragment of code.

Слайд 17





What is the output of the following code:
Описание слайда:
What is the output of the following code:

Слайд 18





One dimensional array on Wikibooks
Описание слайда:
One dimensional array on Wikibooks

Слайд 19





Two dimensional array (Matrix)
Описание слайда:
Two dimensional array (Matrix)

Слайд 20





Declaration 
int [,] mas = new int[5,5]; 
int[,] mas = new int[3, 3] { { 4, 7, 3 }, { 3, 6, 9 }, { 0, 1, 4 } }; 
int[,] mas = { { 4, 7, 3 }, { 3, 6, 9 }, { 0, 1, 4 } };
Описание слайда:
Declaration int [,] mas = new int[5,5]; int[,] mas = new int[3, 3] { { 4, 7, 3 }, { 3, 6, 9 }, { 0, 1, 4 } }; int[,] mas = { { 4, 7, 3 }, { 3, 6, 9 }, { 0, 1, 4 } };

Слайд 21





Assign Values to Two Dimension
Описание слайда:
Assign Values to Two Dimension

Слайд 22





Two dimensional arrays on wikibooks
Описание слайда:
Two dimensional arrays on wikibooks

Слайд 23





Reflection
Описание слайда:
Reflection



Теги 1D and 2D arrays
Похожие презентации
Mypresentation.ru
Загрузить презентацию