Data Types
& Arithmetic Operations
Week 2
1
Helping Hand for Relief & Development
Goal of this lesson
2
Key Terms
3
We will learn about these terms in the next slides
What is a data type?
4
Primitive
Non-primitive
Data types
Numbers
Letters
Characters
Words
Sentences
Quick Review
5
Data Types
6
Why we need data types
awesome + cool
1 + 2
Example
7
What is a variable?
8
“Daanish”
name
0
sum
Most Important Data Types
9
Most Important Data Types
10
Most Important Data Types
11
Why It’s Important
12
Variable Declaration
13
Printing Variables
14
Constant Declaration
15
Casting
16
CW Exercise 1
17
Arithmetic Operations
18
Full Order of Operations
19
Short Order of Operations
(1) () (parentheses)
(2) *, /, % (multiplication, division, modulo)
(3) +, - (addition, subtraction)
20
Order of Operations - Key Points
21
CW Exercise 2
22
CW Exercise 3
23
Use a calculator if necessary
Key Terms
24
Define these terms in your own words, we will go over them in a minute
Key Terms
25
What We Learned
26
Homework
27
Extra Reading
28
Questions?
29
Feel free to ask!