SlideShare a Scribd company logo
1 of 67
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
LEARNING OBJECTIVES ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
CONSTANTS ,[object Object],[object Object],[object Object],[object Object]
 
OPERATORS ,[object Object]
OPERANDS ,[object Object],[object Object],[object Object]
CLASSIFICATION of OPERATORS ,[object Object],[object Object],[object Object],[object Object]
Arithmetic Operators ,[object Object],[object Object],[object Object]
FUNCTION OPERATOR Addition + (plus sign) Subtraction - (minus sign) Multiplication * (asterisk) Division / (slash) Modular Division/ Modulus mod Integer Division div Exponentiation ^ (caret sign) Negation - (minus sign)
+ and - ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
* and / ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Div ,[object Object],[object Object],2 7 2 3.5 1 7 div 2
Mod ,[object Object],[object Object],[object Object],[object Object],2 7 2 3 1 7 div 2 7 mod 2
^ and -  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
HEIRARCHY of ARITHMETIC OPERATIONS ,[object Object]
EXPRESSION ,[object Object]
NEMDASMo Method ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example: ,[object Object],[object Object],[object Object],[object Object],[object Object]
LESSON TERMS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object]
VALUES and VARIABLES ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PLEASE EXCHANGE NOTEBOOKS to YOUR CHEATMATES ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Assignment Operators ,[object Object],[object Object]
Assignment Statements ,[object Object],[object Object],[object Object],[object Object]
Illustrative Example ,[object Object],VARIABLE EXPRESSION ASSIGNMENT OPERATOR
[object Object]
Example ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object]
A variable on the right-hand side of an assignment statement must first be given a value before it can be used in an assignment statement. A variable without an assigned value is called an  uninitialized variable
Relational Operators ,[object Object],[object Object],[object Object],[object Object]
FUNCTION OPERATOR Greater than > Less than < Equal to = Not equal to <> Greater than or Equal to >= Less than or Equal to <=
EXAMPLE RESULT 8>5 True  8<5 False What happened in here was a  type mismatch 8=8 True 8<>5 True 8>=10 False What happened here was a  type mismatch 8<=9 True
[object Object]
LESSON TERMS ,[object Object],[object Object],[object Object],[object Object]
In your notebook
 
Write the correct statement for the following values to the given variables ,[object Object],[object Object],[object Object],[object Object],[object Object]
Determine the Boolean Value ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PLEASE EXCHANGE NOTEBOOKS to YOUR CHEATMATES ,[object Object],[object Object],[object Object],[object Object],[object Object]
PLEASE EXCHANGE NOTEBOOKS to YOUR CHEATMATES ,[object Object],[object Object],[object Object],[object Object],[object Object]
Logical Operators ,[object Object],[object Object],[object Object]
KINDS OF BOOLEAN OPERATOR ,[object Object],[object Object],[object Object]
The AND Operator ,[object Object]
(X  > 75) and (Y  >  75)
[object Object]
AND Operator Operand / Expression 1 Operand/ Expression 2 Decision True True True True False False False True False False False False
ILLUSTRATIVE EXAMPLE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ILLUSTRATIVE EXAMPLE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The OR Operator ,[object Object]
(X = 1) or (X = 3)
[object Object]
OR Operator Operand / Expression 1 Operand/ Expression 2 Decision True True True True False True False True True False False False
ILLUSTRATIVE EXAMPLE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ILLUSTRATIVE EXAMPLE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The NOT Operator ,[object Object],[object Object]
If passed is true, then not passed is false If passed is false, then not passed is true
NOT Operator Operand / Expression 1 Operand / Expression 2 Operand / Expression 1 Decision Operand / Expression 2 Decision True True False False True False False True False  True True False False False True True
OPERATOR PRECEDENCE OPERATOR PRECEDENCE Not *, /, div, mod, and + , -, or <, <=, =, <>, >=, > Highest (evaluated first) Lowest (evaluated last)
LESSON TERMS ,[object Object],[object Object],[object Object],[object Object],[object Object]
In your notebook
Determine the Boolean values returned by the following operators with the given values ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
GET THE TOTAL NUMBER of SCORE Number Topic Items 1 Arithmetic Operators 5 2 A Assignment Operators 5 2 B Relational Operators 5 3 Boolean/ Logical Operators 10 25
By Group 4

More Related Content

What's hot

Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
bajiajugal
 
Dti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionDti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpression
alish sha
 
Basic c operators
Basic c operatorsBasic c operators
Basic c operators
dishti7
 
C Prog. - Operators and Expressions
C Prog. - Operators and ExpressionsC Prog. - Operators and Expressions
C Prog. - Operators and Expressions
vinay arora
 
C programming operators
C programming operatorsC programming operators
C programming operators
Suneel Dogra
 

What's hot (18)

Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++
 
C – operators and expressions
C – operators and expressionsC – operators and expressions
C – operators and expressions
 
Lecture03(c expressions & operators)
Lecture03(c expressions & operators)Lecture03(c expressions & operators)
Lecture03(c expressions & operators)
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
Dti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionDti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpression
 
Programming Fundamentals lecture 7
Programming Fundamentals lecture 7Programming Fundamentals lecture 7
Programming Fundamentals lecture 7
 
Basic c operators
Basic c operatorsBasic c operators
Basic c operators
 
C operator and expression
C operator and expressionC operator and expression
C operator and expression
 
Operators
OperatorsOperators
Operators
 
6 operators-in-c
6 operators-in-c6 operators-in-c
6 operators-in-c
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in C
 
ICP - Lecture 7 and 8
ICP - Lecture 7 and 8ICP - Lecture 7 and 8
ICP - Lecture 7 and 8
 
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
 
Python : basic operators
Python : basic operatorsPython : basic operators
Python : basic operators
 
C Prog. - Operators and Expressions
C Prog. - Operators and ExpressionsC Prog. - Operators and Expressions
C Prog. - Operators and Expressions
 
c++ programming Unit 4 operators
c++ programming Unit 4 operatorsc++ programming Unit 4 operators
c++ programming Unit 4 operators
 
C programming operators
C programming operatorsC programming operators
C programming operators
 

Viewers also liked

Classroom Management 1&2
Classroom Management 1&2Classroom Management 1&2
Classroom Management 1&2
bambam242
 
Leadership project
Leadership projectLeadership project
Leadership project
bhackney0613
 
Islamhudaa video2
Islamhudaa video2Islamhudaa video2
Islamhudaa video2
davv321
 
Islamhudaa fatwa2
Islamhudaa fatwa2Islamhudaa fatwa2
Islamhudaa fatwa2
davv321
 
Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)
Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)
Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)
Hesti Romadhoni
 
Ch. 2 1_thru_2_3_review_questions
Ch. 2 1_thru_2_3_review_questionsCh. 2 1_thru_2_3_review_questions
Ch. 2 1_thru_2_3_review_questions
lmrogers03
 
My Lists - Encore Catalog
My Lists - Encore CatalogMy Lists - Encore Catalog
My Lists - Encore Catalog
npljenny
 
Parents as partners mohua bose and shilpa solanki
Parents as partners   mohua bose and shilpa solankiParents as partners   mohua bose and shilpa solanki
Parents as partners mohua bose and shilpa solanki
EduMedia India
 
Learning material
Learning materialLearning material
Learning material
TadpoleNana
 

Viewers also liked (20)

Classroom Management 1&2
Classroom Management 1&2Classroom Management 1&2
Classroom Management 1&2
 
Leadership project
Leadership projectLeadership project
Leadership project
 
Evaluation 3
Evaluation 3Evaluation 3
Evaluation 3
 
Islamhudaa video2
Islamhudaa video2Islamhudaa video2
Islamhudaa video2
 
UK rules
UK rulesUK rules
UK rules
 
Lastinger Inquiry Project Sarah J
Lastinger Inquiry Project Sarah JLastinger Inquiry Project Sarah J
Lastinger Inquiry Project Sarah J
 
Islamhudaa fatwa2
Islamhudaa fatwa2Islamhudaa fatwa2
Islamhudaa fatwa2
 
Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)
Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)
Reservation - Hesti Romadhoni SMK N 2 WONOGIRI :)
 
Ch. 2 1_thru_2_3_review_questions
Ch. 2 1_thru_2_3_review_questionsCh. 2 1_thru_2_3_review_questions
Ch. 2 1_thru_2_3_review_questions
 
My Lists - Encore Catalog
My Lists - Encore CatalogMy Lists - Encore Catalog
My Lists - Encore Catalog
 
Parents as partners mohua bose and shilpa solanki
Parents as partners   mohua bose and shilpa solankiParents as partners   mohua bose and shilpa solanki
Parents as partners mohua bose and shilpa solanki
 
Pluar nouns
Pluar nounsPluar nouns
Pluar nouns
 
The Marketing Plan Game - Wide Screen
The Marketing Plan Game - Wide ScreenThe Marketing Plan Game - Wide Screen
The Marketing Plan Game - Wide Screen
 
1 4angles
1 4angles1 4angles
1 4angles
 
2010 06 20 7 may alam ako sa bible!
2010 06 20  7 may alam ako sa bible!2010 06 20  7 may alam ako sa bible!
2010 06 20 7 may alam ako sa bible!
 
Factories
FactoriesFactories
Factories
 
Learning material
Learning materialLearning material
Learning material
 
Media
MediaMedia
Media
 
Conversational english2
Conversational english2Conversational english2
Conversational english2
 
Jeopady vocab_matter unit
Jeopady vocab_matter unitJeopady vocab_matter unit
Jeopady vocab_matter unit
 

Similar to Report Group 4 Constants and Variables

Reportgroup4 111016004939-phpapp01
Reportgroup4 111016004939-phpapp01Reportgroup4 111016004939-phpapp01
Reportgroup4 111016004939-phpapp01
Nurhidayah Mahmud
 
FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3
rohassanie
 
C Sharp Jn (2)
C Sharp Jn (2)C Sharp Jn (2)
C Sharp Jn (2)
jahanullah
 

Similar to Report Group 4 Constants and Variables (20)

Reportgroup4 111016004939-phpapp01
Reportgroup4 111016004939-phpapp01Reportgroup4 111016004939-phpapp01
Reportgroup4 111016004939-phpapp01
 
FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3
 
Cprogrammingoperator
CprogrammingoperatorCprogrammingoperator
Cprogrammingoperator
 
cprogrammingoperator.ppt
cprogrammingoperator.pptcprogrammingoperator.ppt
cprogrammingoperator.ppt
 
C PRESENTATION.pptx
C PRESENTATION.pptxC PRESENTATION.pptx
C PRESENTATION.pptx
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programming
 
C Sharp Jn (2)
C Sharp Jn (2)C Sharp Jn (2)
C Sharp Jn (2)
 
C Sharp Jn (2)
C Sharp Jn (2)C Sharp Jn (2)
C Sharp Jn (2)
 
Operators
OperatorsOperators
Operators
 
Types of Operators in C programming .pdf
Types of Operators in C programming  .pdfTypes of Operators in C programming  .pdf
Types of Operators in C programming .pdf
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptx
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++
 
Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5
 
C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions Notes
 
Operators
OperatorsOperators
Operators
 
operators.pptx
operators.pptxoperators.pptx
operators.pptx
 
operators and expressions in c++
 operators and expressions in c++ operators and expressions in c++
operators and expressions in c++
 
Unit ii chapter 1 operator and expressions in c
Unit ii chapter 1 operator and expressions in cUnit ii chapter 1 operator and expressions in c
Unit ii chapter 1 operator and expressions in c
 
Basics of c++
Basics of c++ Basics of c++
Basics of c++
 
Opeartor &amp; expression
Opeartor &amp; expressionOpeartor &amp; expression
Opeartor &amp; expression
 

Recently uploaded

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Report Group 4 Constants and Variables

  • 1.
  • 2.  
  • 3.
  • 4.  
  • 5.
  • 6.  
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. FUNCTION OPERATOR Addition + (plus sign) Subtraction - (minus sign) Multiplication * (asterisk) Division / (slash) Modular Division/ Modulus mod Integer Division div Exponentiation ^ (caret sign) Negation - (minus sign)
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32. A variable on the right-hand side of an assignment statement must first be given a value before it can be used in an assignment statement. A variable without an assigned value is called an uninitialized variable
  • 33.
  • 34. FUNCTION OPERATOR Greater than > Less than < Equal to = Not equal to <> Greater than or Equal to >= Less than or Equal to <=
  • 35. EXAMPLE RESULT 8>5 True 8<5 False What happened in here was a type mismatch 8=8 True 8<>5 True 8>=10 False What happened here was a type mismatch 8<=9 True
  • 36.
  • 37.
  • 39.  
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47. (X > 75) and (Y > 75)
  • 48.
  • 49. AND Operator Operand / Expression 1 Operand/ Expression 2 Decision True True True True False False False True False False False False
  • 50.
  • 51.
  • 52.
  • 53. (X = 1) or (X = 3)
  • 54.
  • 55. OR Operator Operand / Expression 1 Operand/ Expression 2 Decision True True True True False True False True True False False False
  • 56.
  • 57.
  • 58.
  • 59. If passed is true, then not passed is false If passed is false, then not passed is true
  • 60. NOT Operator Operand / Expression 1 Operand / Expression 2 Operand / Expression 1 Decision Operand / Expression 2 Decision True True False False True False False True False True True False False False True True
  • 61. OPERATOR PRECEDENCE OPERATOR PRECEDENCE Not *, /, div, mod, and + , -, or <, <=, =, <>, >=, > Highest (evaluated first) Lowest (evaluated last)
  • 62.
  • 64.
  • 65.
  • 66. GET THE TOTAL NUMBER of SCORE Number Topic Items 1 Arithmetic Operators 5 2 A Assignment Operators 5 2 B Relational Operators 5 3 Boolean/ Logical Operators 10 25