Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
18 слайдов
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
5.95 MB
Просмотров:
63
Скачиваний:
0
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![ARRAYS LOOPS](/documents_6/281ceba65825a17054cea0a787e2406c/img0.jpg)
Содержание слайда: ARRAYS
LOOPS
№2 слайд![AGENDA Arrays While For](/documents_6/281ceba65825a17054cea0a787e2406c/img1.jpg)
Содержание слайда: AGENDA
Arrays
While
For
Break, continue
Search item in the array
Sorting
Practical tasks
№3 слайд![Array An array is a container](/documents_6/281ceba65825a17054cea0a787e2406c/img2.jpg)
Содержание слайда: Array
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed.
String dayWeek[]= new String[7];
String[] month;
month = new String[12];
Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the preceding illustration, numbering begins with 0.
dayWeek[0] = “Monday”;
month[11] = “December”;
№4 слайд![Array int month days , , , ,](/documents_6/281ceba65825a17054cea0a787e2406c/img3.jpg)
Содержание слайда: Array
int month_days[ ] = {31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31} ;
int month_days[ ] = new int[12];
month_days[0] = 31;
month_days[1] = 28;
// . . .
month_days[11] = 31;
int n = month_days.length; // n = 12
System.out.println(month); //[I@659e0bfd
Need override toString();
or use Arrays.toString(month);
№5 слайд![Array char twod new char char](/documents_6/281ceba65825a17054cea0a787e2406c/img4.jpg)
Содержание слайда: Array
char twod1[ ][ ]= new char[3][4];
char[ ][ ] twod2= new char[3][4];
double m[ ][ ]= {{0, 1, 2, 3},
{4, 5, 6, 7},
{8, 9, 10, 11},
{12, 13, 14, 15}};
int twoD[ ][ ]= new int [4][ ];
twoD[0]= new int [1];
twoD[1]= new int [2];
twoD[2]= new int [3];
twoD[3]= new int [4];
int[ ][ ] irregular={{1},{2,3,4},{5},{6,7}}; // Rows not equal
№6 слайд![while](/documents_6/281ceba65825a17054cea0a787e2406c/img5.jpg)
№7 слайд![do while](/documents_6/281ceba65825a17054cea0a787e2406c/img6.jpg)
Содержание слайда: do while
№8 слайд![for The for statement](/documents_6/281ceba65825a17054cea0a787e2406c/img7.jpg)
Содержание слайда: for
The for statement provides a compact way to iterate over a range of values.
№9 слайд![for Another representation of](/documents_6/281ceba65825a17054cea0a787e2406c/img8.jpg)
Содержание слайда: for
Another representation of statement for
№10 слайд![break The break statement](/documents_6/281ceba65825a17054cea0a787e2406c/img9.jpg)
Содержание слайда: break
The break statement terminates the for, while and do-while loop
№11 слайд![continue The continue](/documents_6/281ceba65825a17054cea0a787e2406c/img10.jpg)
Содержание слайда: continue
The continue statement skips the current iteration the for, while and do-while loop
№12 слайд![Sum, product, amount There s](/documents_6/281ceba65825a17054cea0a787e2406c/img11.jpg)
Содержание слайда: Sum, product, amount
There’s an array int[] arr = {2, -5, 7, -4, 8};
What will results after running next code?
№13 слайд![Minimum, maximum ...](/documents_6/281ceba65825a17054cea0a787e2406c/img12.jpg)
Содержание слайда: Minimum, maximum ...
№14 слайд![Sorting](/documents_6/281ceba65825a17054cea0a787e2406c/img13.jpg)
Содержание слайда: Sorting
№15 слайд![Practical tasks Create an](/documents_6/281ceba65825a17054cea0a787e2406c/img14.jpg)
Содержание слайда: Practical tasks
Create an array of ten integers. Display
the biggest of these numbers;
the sum of positive numbers in the array;
the amount of negative numbers in the array.
What values there are more: negative or positive?
Create a class Employee with fields name, department number, salary. Create five objects of class Employee. Display
all employees of a certain department (enter department number in the console);
arrange workers by the field salary in descending order.
№16 слайд![HomeWork online course UDEMY](/documents_6/281ceba65825a17054cea0a787e2406c/img15.jpg)
Содержание слайда: HomeWork (online course)
UDEMY course "Java Tutorial for Complete Beginners": https://www.udemy.com/java-tutorial/
Complete lessons 8, 9, 12, 14 - 16:
№17 слайд![Homework Ask user to enter](/documents_6/281ceba65825a17054cea0a787e2406c/img16.jpg)
Содержание слайда: Homework
Ask user to enter the number of month. Read the value and write the amount of days in this month (create array with amount days of each month).
Enter 10 integer numbers. Calculate the sum of first 5 elements if they are positive or product of last 5 element in the other case.
Enter 5 integer numbers. Find
position of second positive number;
minimum and its position in the array.
Organize entering integers until the first negative number. Count the product of all entered even numbers.
Create class Car with fields type, year of production and engine capacity. Create and initialize four instances of class Car. Display cars
certain model year (enter year in the console);
ordered by the field year.
№18 слайд![THANKS](/documents_6/281ceba65825a17054cea0a787e2406c/img17.jpg)
Содержание слайда: THANKS