SlideShare a Scribd company logo
Introduction to
Software
Engineering
CONTENTS OF THIS COURSE
Here’s what you’ll find in this LECTURE1:
 Functions
 Data type.
 Numeral System.
 Variables.
 Visualize code using Visualizer.
Lecture 1
“Let’s make the world a
better place”
Functions
• You can think of function as a black box take an input and
produce an output and it’s not important to know what is
the algorithm inside of it , just enough to know how you can
use and what is their function.
Hello,World
Functions
Data types
• Fixed values such as numbers, letters, and strings are called
“constants”
• String constants use single quotes (') or double quotes (")
Data types
• Numerical Data int, float, double.
• Textual Data string, char.
• Bolean Data true, false.
Some common Compiler errors
• Forgetting the semicolon ;
• Forgetting to one the curly braces of the main function { }
• Forgetting the “ “ in a string.
Some common Compiler errors
 performs calculations
a billion calculations per second! two operations in same
time light travels 1 foot.
 Remembers results
100s of gigabytes of storage!
typical machine could hold 1.5M books of standard size
Variables
Variables
• You can think of variable as a little box or a container to
store data in the memory of the computer and later
retrieve the data using the variable “name”
• Programmers get to choose the names of the variables
• You can change the contents of a variable in a later
statement
Variables
Rules for naming variables in C++
 The first character of the name must be a letter or an underscore.
 Only letters, digits, or underscores can follow the first letter. Blank
spaces aren’t allowed; separate words in a multiple-word identifier
are indicated by capitalizing the first letter of one or more of the
words. (Although underscores can also be used for this purpose,
they are increasingly being used only for compiler-dependent
identifiers.)
 An identifier name can’t be one of the keywords listed in Table 1.1.
(A keyword is a word the language sets aside for a special purpose
and can be used only in a specified manner. 4 )
 The maximum number of characters in an identifier is 1024.
Rules for naming variables in C++
Wrong Naming examples
 3number ●
 total salary ●
 private
Variables
Variables
Variables
Variables
Variables
Arian 5 the worst bug disaster
On June 4th, 1996, the very first Ariane 5 rocket ignited its
engines and began speeding away from the coast of French
Guiana. 37 seconds later, the rocket flipped 90 degrees in
the wrong direction, and less than two seconds later,
aerodynamic forces ripped the boosters apart from the
main stage at a height of 4km.
Arian 5 the worst bug disaster
On June 4th, 1996, the very first Ariane 5 rocket ignited its
engines and began speeding away from the coast of French
Guiana. 37 seconds later, the rocket flipped 90 degrees in
the wrong direction, and less than two seconds later,
aerodynamic forces ripped the boosters apart from the
main stage at a height of 4km.
More Variables
Comments in C++
Comments in C++ begin with // character and continue to the end of the line.
Because comments do not execute, when you run a program you will not see
any indication of the comment there. Comments are in the source code for
humans to read, not for computers to execute.
More Variables
Constant Value
● Constant values can not be overwritten.
● You must assign a value to it.
Numeric Expressions
Operation
Operator
Addition
+
Subtraction
-
Multiplication
*
Division
/
Remainder
%
Escape Sequence
User Input
C++ has an input function which lets you ask
a user for some text input
Input / Output in C++
cout (Console Output)
cin (Console Input)
Conditions
C++ uses boolean logic to evaluate conditions. The boolean
values True and False are returned when an expression is
compared or evaluated.
Conditions
Conditions
C++ uses boolean logic to evaluate conditions. The boolean
values True and False are returned when an expression is
compared or evaluated.
Conditions
C++ uses boolean logic to evaluate conditions. The boolean
values True and False are returned when an expression is
compared or evaluated.
Conditions-Logic Gates
A Logic gate is a kind of the basic building block of a digital
circuit having two inputs and one output. ... Logic gates are
used to carry out the logical operations on single or
multiple binary inputs and result in one binary output. In
simple words, logic gates are the electronic circuits in a
digital system.
Conditions-Logic Gates
Bitwise Operator
Precision in floating point in CPP
 floor(), ceil(), round(), setprecision()
Loop
Python has two primitive loop commands:
1.while loops
2.for loops
Loop
 C++ has two primitive loop commands:
while loops
Loop
 C++ has two primitive loop commands:
for loops
Break and continue
Do- while
Function
How can we create a glass box.
Ad

Recommended

Presentation on python
Presentation on python
Venkat Projects
 
Python Presentation
Python Presentation
Narendra Sisodiya
 
Python cheat-sheet
Python cheat-sheet
srinivasanr281952
 
Python basics
Python basics
Jyoti shukla
 
Introduction to python
Introduction to python
Ayshwarya Baburam
 
Python Tutorial Part 1
Python Tutorial Part 1
Haitham El-Ghareeb
 
Python 3 Programming Language
Python 3 Programming Language
Tahani Al-Manie
 
Introduction to Python
Introduction to Python
amiable_indian
 
Fundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
Amira ElSharkawy
 
Chapter 0 Python Overview (Python Programming Lecture)
Chapter 0 Python Overview (Python Programming Lecture)
IoT Code Lab
 
Python-01| Fundamentals
Python-01| Fundamentals
Mohd Sajjad
 
Introduction To Programming with Python
Introduction To Programming with Python
Sushant Mane
 
Python
Python
Rural Engineering College Hulkoti
 
Python by Rj
Python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Python programming msc(cs)
Python programming msc(cs)
KALAISELVI P
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Python revision tour i
Python revision tour i
Mr. Vikram Singh Slathia
 
Chapter 9 python fundamentals
Chapter 9 python fundamentals
Praveen M Jigajinni
 
Python second ppt
Python second ppt
RaginiJain21
 
What is Python? An overview of Python for science.
What is Python? An overview of Python for science.
Nicholas Pringle
 
Introduction to python
Introduction to python
MaheshPandit16
 
Python training
Python training
Kunalchauhan76
 
Introduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
Python Tutorial
Python Tutorial
AkramWaseem
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
ParrotAI
 
Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python
Jaganadh Gopinadhan
 
python.ppt
python.ppt
shreyas_test_1234
 
C++ Made simple .pptx
C++ Made simple .pptx
Mohamed Essam
 
Introduction to Software Engineering with C++
Introduction to Software Engineering with C++
Mohamed Essam
 

More Related Content

What's hot (20)

Fundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
Amira ElSharkawy
 
Chapter 0 Python Overview (Python Programming Lecture)
Chapter 0 Python Overview (Python Programming Lecture)
IoT Code Lab
 
Python-01| Fundamentals
Python-01| Fundamentals
Mohd Sajjad
 
Introduction To Programming with Python
Introduction To Programming with Python
Sushant Mane
 
Python
Python
Rural Engineering College Hulkoti
 
Python by Rj
Python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Python programming msc(cs)
Python programming msc(cs)
KALAISELVI P
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Python revision tour i
Python revision tour i
Mr. Vikram Singh Slathia
 
Chapter 9 python fundamentals
Chapter 9 python fundamentals
Praveen M Jigajinni
 
Python second ppt
Python second ppt
RaginiJain21
 
What is Python? An overview of Python for science.
What is Python? An overview of Python for science.
Nicholas Pringle
 
Introduction to python
Introduction to python
MaheshPandit16
 
Python training
Python training
Kunalchauhan76
 
Introduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
Python Tutorial
Python Tutorial
AkramWaseem
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
ParrotAI
 
Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python
Jaganadh Gopinadhan
 
python.ppt
python.ppt
shreyas_test_1234
 
Fundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
Amira ElSharkawy
 
Chapter 0 Python Overview (Python Programming Lecture)
Chapter 0 Python Overview (Python Programming Lecture)
IoT Code Lab
 
Python-01| Fundamentals
Python-01| Fundamentals
Mohd Sajjad
 
Introduction To Programming with Python
Introduction To Programming with Python
Sushant Mane
 
Python programming msc(cs)
Python programming msc(cs)
KALAISELVI P
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
What is Python? An overview of Python for science.
What is Python? An overview of Python for science.
Nicholas Pringle
 
Introduction to python
Introduction to python
MaheshPandit16
 
Introduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
ParrotAI
 
Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python
Jaganadh Gopinadhan
 

Similar to Introduction to Structure Programming with C++ (20)

C++ Made simple .pptx
C++ Made simple .pptx
Mohamed Essam
 
Introduction to Software Engineering with C++
Introduction to Software Engineering with C++
Mohamed Essam
 
Getting started with c++
Getting started with c++
K Durga Prasad
 
Getting started with c++
Getting started with c++
Bussines man badhrinadh
 
lec 2.pptx
lec 2.pptx
AhsanAli64749
 
Getting started with c++.pptx
Getting started with c++.pptx
Akash Baruah
 
THE C++ LECTURE 2 ON DATA STRUCTURES OF C++
THE C++ LECTURE 2 ON DATA STRUCTURES OF C++
sanatahiratoz0to9
 
computer ppt group22222222222222222222 (1).pptx
computer ppt group22222222222222222222 (1).pptx
JoyLedda3
 
Lecture06-TypesVarsConsts variables data types
Lecture06-TypesVarsConsts variables data types
atifmugheesv
 
Lecture+06-TypesVars.ppt
Lecture+06-TypesVars.ppt
KamranAli649587
 
Lecture 1 Introduction C++
Lecture 1 Introduction C++
Ajay Khatri
 
C++ lecture 01
C++ lecture 01
HNDE Labuduwa Galle
 
Pengaturcaraan asas
Pengaturcaraan asas
Unit Kediaman Luar Kampus
 
section 2 c++. - section 2 c++- section 2 c++ -
section 2 c++. - section 2 c++- section 2 c++ -
IbrahimWael5
 
C++
C++
k v
 
Week 02_Development Environment of C++.pdf
Week 02_Development Environment of C++.pdf
salmankhizar3
 
Basics of c++ Programming Language
Basics of c++ Programming Language
Ahmad Idrees
 
C++ PROGRAMMING BASICS
C++ PROGRAMMING BASICS
Aami Kakakhel
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
KMK1093 CHAPTER 2.kkkpptx KMK1093 CHAPTER 2.kkkpptx
KMK1093 CHAPTER 2.kkkpptx KMK1093 CHAPTER 2.kkkpptx
JessylyneSophia
 
C++ Made simple .pptx
C++ Made simple .pptx
Mohamed Essam
 
Introduction to Software Engineering with C++
Introduction to Software Engineering with C++
Mohamed Essam
 
Getting started with c++
Getting started with c++
K Durga Prasad
 
Getting started with c++.pptx
Getting started with c++.pptx
Akash Baruah
 
THE C++ LECTURE 2 ON DATA STRUCTURES OF C++
THE C++ LECTURE 2 ON DATA STRUCTURES OF C++
sanatahiratoz0to9
 
computer ppt group22222222222222222222 (1).pptx
computer ppt group22222222222222222222 (1).pptx
JoyLedda3
 
Lecture06-TypesVarsConsts variables data types
Lecture06-TypesVarsConsts variables data types
atifmugheesv
 
Lecture+06-TypesVars.ppt
Lecture+06-TypesVars.ppt
KamranAli649587
 
Lecture 1 Introduction C++
Lecture 1 Introduction C++
Ajay Khatri
 
section 2 c++. - section 2 c++- section 2 c++ -
section 2 c++. - section 2 c++- section 2 c++ -
IbrahimWael5
 
C++
C++
k v
 
Week 02_Development Environment of C++.pdf
Week 02_Development Environment of C++.pdf
salmankhizar3
 
Basics of c++ Programming Language
Basics of c++ Programming Language
Ahmad Idrees
 
C++ PROGRAMMING BASICS
C++ PROGRAMMING BASICS
Aami Kakakhel
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
KMK1093 CHAPTER 2.kkkpptx KMK1093 CHAPTER 2.kkkpptx
KMK1093 CHAPTER 2.kkkpptx KMK1093 CHAPTER 2.kkkpptx
JessylyneSophia
 
Ad

More from Mohamed Essam (20)

Data Science Crash course
Data Science Crash course
Mohamed Essam
 
2.Feature Extraction
2.Feature Extraction
Mohamed Essam
 
Data Science
Data Science
Mohamed Essam
 
Introduction to Robotics.pptx
Introduction to Robotics.pptx
Mohamed Essam
 
Introduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptx
Mohamed Essam
 
Getting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptx
Mohamed Essam
 
Linear_algebra.pptx
Linear_algebra.pptx
Mohamed Essam
 
Let_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptx
Mohamed Essam
 
OOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptx
Mohamed Essam
 
1.Basic_Syntax
1.Basic_Syntax
Mohamed Essam
 
KNN.pptx
KNN.pptx
Mohamed Essam
 
Regularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptx
Mohamed Essam
 
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
Mohamed Essam
 
Clean_Code
Clean_Code
Mohamed Essam
 
Linear_Regression
Linear_Regression
Mohamed Essam
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
Mohamed Essam
 
Naieve_Bayee.pptx
Naieve_Bayee.pptx
Mohamed Essam
 
Activation_function.pptx
Activation_function.pptx
Mohamed Essam
 
Deep_Learning_Frameworks
Deep_Learning_Frameworks
Mohamed Essam
 
Neural_Network
Neural_Network
Mohamed Essam
 
Data Science Crash course
Data Science Crash course
Mohamed Essam
 
2.Feature Extraction
2.Feature Extraction
Mohamed Essam
 
Introduction to Robotics.pptx
Introduction to Robotics.pptx
Mohamed Essam
 
Introduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptx
Mohamed Essam
 
Getting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptx
Mohamed Essam
 
Let_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptx
Mohamed Essam
 
OOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptx
Mohamed Essam
 
Regularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptx
Mohamed Essam
 
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
Mohamed Essam
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
Mohamed Essam
 
Activation_function.pptx
Activation_function.pptx
Mohamed Essam
 
Deep_Learning_Frameworks
Deep_Learning_Frameworks
Mohamed Essam
 
Ad

Recently uploaded (20)

OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 

Introduction to Structure Programming with C++

  • 2. CONTENTS OF THIS COURSE Here’s what you’ll find in this LECTURE1:  Functions  Data type.  Numeral System.  Variables.  Visualize code using Visualizer.
  • 4. “Let’s make the world a better place”
  • 5. Functions • You can think of function as a black box take an input and produce an output and it’s not important to know what is the algorithm inside of it , just enough to know how you can use and what is their function. Hello,World
  • 7. Data types • Fixed values such as numbers, letters, and strings are called “constants” • String constants use single quotes (') or double quotes (")
  • 8. Data types • Numerical Data int, float, double. • Textual Data string, char. • Bolean Data true, false.
  • 9. Some common Compiler errors • Forgetting the semicolon ; • Forgetting to one the curly braces of the main function { } • Forgetting the “ “ in a string.
  • 10. Some common Compiler errors  performs calculations a billion calculations per second! two operations in same time light travels 1 foot.  Remembers results 100s of gigabytes of storage! typical machine could hold 1.5M books of standard size
  • 12. Variables • You can think of variable as a little box or a container to store data in the memory of the computer and later retrieve the data using the variable “name” • Programmers get to choose the names of the variables • You can change the contents of a variable in a later statement
  • 14. Rules for naming variables in C++  The first character of the name must be a letter or an underscore.  Only letters, digits, or underscores can follow the first letter. Blank spaces aren’t allowed; separate words in a multiple-word identifier are indicated by capitalizing the first letter of one or more of the words. (Although underscores can also be used for this purpose, they are increasingly being used only for compiler-dependent identifiers.)  An identifier name can’t be one of the keywords listed in Table 1.1. (A keyword is a word the language sets aside for a special purpose and can be used only in a specified manner. 4 )  The maximum number of characters in an identifier is 1024.
  • 15. Rules for naming variables in C++
  • 16. Wrong Naming examples  3number ●  total salary ●  private
  • 22. Arian 5 the worst bug disaster On June 4th, 1996, the very first Ariane 5 rocket ignited its engines and began speeding away from the coast of French Guiana. 37 seconds later, the rocket flipped 90 degrees in the wrong direction, and less than two seconds later, aerodynamic forces ripped the boosters apart from the main stage at a height of 4km.
  • 23. Arian 5 the worst bug disaster On June 4th, 1996, the very first Ariane 5 rocket ignited its engines and began speeding away from the coast of French Guiana. 37 seconds later, the rocket flipped 90 degrees in the wrong direction, and less than two seconds later, aerodynamic forces ripped the boosters apart from the main stage at a height of 4km.
  • 25. Comments in C++ Comments in C++ begin with // character and continue to the end of the line. Because comments do not execute, when you run a program you will not see any indication of the comment there. Comments are in the source code for humans to read, not for computers to execute.
  • 27. Constant Value ● Constant values can not be overwritten. ● You must assign a value to it.
  • 30. User Input C++ has an input function which lets you ask a user for some text input
  • 31. Input / Output in C++ cout (Console Output) cin (Console Input)
  • 32. Conditions C++ uses boolean logic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated.
  • 34. Conditions C++ uses boolean logic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated.
  • 35. Conditions C++ uses boolean logic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated.
  • 36. Conditions-Logic Gates A Logic gate is a kind of the basic building block of a digital circuit having two inputs and one output. ... Logic gates are used to carry out the logical operations on single or multiple binary inputs and result in one binary output. In simple words, logic gates are the electronic circuits in a digital system.
  • 39. Precision in floating point in CPP  floor(), ceil(), round(), setprecision()
  • 40. Loop Python has two primitive loop commands: 1.while loops 2.for loops
  • 41. Loop  C++ has two primitive loop commands: while loops
  • 42. Loop  C++ has two primitive loop commands: for loops
  • 45. Function How can we create a glass box.

Editor's Notes

  • #6: Example of the doctors that has no idea about problem solving.
  • #7: Example of the doctors that has no idea about problem solving.
  • #8: Example of the doctors that has no idea about problem solving.
  • #9: Example of the doctors that has no idea about problem solving.
  • #10: Example of the doctors that has no idea about problem solving.
  • #11: Example of the doctors that has no idea about problem solving.
  • #12: Example of the doctors that has no idea about problem solving.
  • #13: Example of the doctors that has no idea about problem solving.
  • #14: Example of the doctors that has no idea about problem solving.
  • #15: Example of the doctors that has no idea about problem solving.
  • #16: Example of the doctors that has no idea about problem solving.
  • #17: Example of the doctors that has no idea about problem solving.
  • #18: Example of the doctors that has no idea about problem solving.
  • #19: Example of the doctors that has no idea about problem solving.
  • #20: Example of the doctors that has no idea about problem solving.
  • #21: Example of the doctors that has no idea about problem solving.
  • #22: Example of the doctors that has no idea about problem solving.
  • #23: Example of the doctors that has no idea about problem solving.
  • #24: Example of the doctors that has no idea about problem solving.
  • #25: Example of the doctors that has no idea about problem solving.
  • #26: Example of the doctors that has no idea about problem solving.
  • #27: Example of the doctors that has no idea about problem solving.
  • #28: Example of the doctors that has no idea about problem solving.
  • #29: Example of the doctors that has no idea about problem solving.
  • #30: Example of the doctors that has no idea about problem solving.
  • #31: Example of the doctors that has no idea about problem solving.
  • #32: Example of the doctors that has no idea about problem solving.
  • #33: Example of the doctors that has no idea about problem solving.
  • #34: Example of the doctors that has no idea about problem solving.
  • #35: Example of the doctors that has no idea about problem solving.
  • #36: Example of the doctors that has no idea about problem solving.
  • #37: Example of the doctors that has no idea about problem solving.
  • #38: Example of the doctors that has no idea about problem solving.
  • #39: Example of the doctors that has no idea about problem solving.
  • #40: Example of the doctors that has no idea about problem solving.
  • #41: Example of the doctors that has no idea about problem solving.
  • #42: Example of the doctors that has no idea about problem solving.
  • #43: Example of the doctors that has no idea about problem solving.
  • #44: Example of the doctors that has no idea about problem solving.
  • #45: Example of the doctors that has no idea about problem solving.
  • #46: Example of the doctors that has no idea about problem solving.