1st Lecture
1st Lecture
Y
& —all ol Lo
:
uuuuuuuuuuuuuuuuuuuu
CS 1312
Lecture 1
Course Main Objective
T 1
2
Arrays and Vectors
Recursion
12
3
3 Files processing 4
4 Introduction to object-oriented concept 5
5 Classes and objects: the building blocks 6,7
6 Encapsulation and data hiding 8
7 Inheritance and code reusability 9,10
Assessment
Theoretical Practical
* Quizzes (15%) * Quizzes (15%)
= 3 quizzes throughout the semester. = 2 quizzes throughout the semester.
* Textbooks
* W. Savitch, JAVA: an introduction to problem solving and
programming, global edition. Philadelphia, PA: Pearson
Education, 2018.
* Blackboard
* Lecture slides
* Checking your marks
* Announcements
* Quizzes will be released in the theoretical part of the module in the blackboard. Don't
be mixed out.
Arrays and Vectors
Objectives
Indices
il 1 2 3 4 5 6 -
P 32 30 25.7 26 34 31.5 29
temperature[n + 2]
Index (also cailed a subscript)
Sample
screen
* Note results of ==
* Note definition and use of method equals
* Receives two array parameters
+ Checks length and each individual pair of array elements
* Remember array types are reference types
Summary
30
Z'S
Sl n||p[r| cola
UMM AL-QURA UNIVERSITY
Thank You