SlideShare a Scribd company logo
PROGRAMMING
CONCEPTS
By Joshpal Sahota
INTRODUCTION
• In this presentation I will be explaining the very basics of programming and
will include the following programming concepts in my presentation:





SELECTION
ITERATION
DATA STRUCTURE
FUNCTIONS, PARAMETERS AND/OR RETURN VALUES
TUTORIAL LESSON – PART 1
(SELECTION)
IF ELSE STATEMENTS
• An if statements can be used conjunctively with if else statements.
• When the Boolean expression of an if statement is false, the if else statement
will be executed.

• Else if statements are incredibly useful when testing a number of conditions.
• Else statements are use when none of the other conditions are true.
TUTORIAL LESSON – PART 1
(SELECTION)
TUTORIAL LESSON – PART 1
(SELECTION CONTINUED)
SWITCH STATEMENTS
• These are very similar to if statements, only it has many more conditions.
• Switch statements tend to run faster than if statements.
• They can be used with any numerical data type for example, char and int
but not with text data types such as string.
TUTORIAL LESSON – PART 1
(SELECTION CONTINUED)
TUTORIAL LESSON – PART 2
(ITERATION)
• The ultimate use of a loop is to repeat a block of code and is one of the
most useful tasks in programming.
• There are different types of loops, FOR loops are the most useful as they are
an easy way of creating loops when the number of iterations are known.
TUTORIAL LESSON – PART 3
(DATA STRUCTURE)
• When including structures we must use the struct keyword followed by the
structure name.
• The curly brackets after struct will declare the things that are contained
within the structure.
• Struct is only a definition for what the structure will look like and so you have
to declare a structure in memory of the student type. We will call it stud.
• In order to access the structure name and the sub item a „.‟ must be used
between the two.
TUTORIAL LESSON – PART 3
(DATA STRUCTURE CONTINUED)
• Arrays are a group of variables that uses one name instead of many.
Individual variables are accessible by using a number.
• To declare an array you must include square brackets after the name of the
array.
• The square brackets must include a number of variables/elements which are
included within the array.
• The number of arrays start from 0 (not 1) and can be displayed below the
declaration of the array.
TUTORIAL LESSON – PART 4
• We use the code “#include <iostream>” which will allow us to print words on
the screen.
• The code “using namespace std;” will allow you to enter lines of code
without having to write out the full code.
• “int main()
{
}”
The curly brackets show where the main function starts and ends. Every
program must include a main function and the word „int‟ is to give an
indication as to what the return value will be.
TUTORIAL LESSON – PART 4

More Related Content

What's hot

CubeIT Tech - Algorithms
CubeIT Tech - AlgorithmsCubeIT Tech - Algorithms
CubeIT Tech - Algorithms
Kirill Suslov
 
Some tips for taking the High School AP Java college board exam
Some tips for taking the High School  AP Java college board examSome tips for taking the High School  AP Java college board exam
Some tips for taking the High School AP Java college board exam
Michael Scaman
 
Accessing non static members from the main
Accessing non static members from the mainAccessing non static members from the main
Accessing non static members from the main
Tutors On Net
 
Structure in c
Structure in cStructure in c
3rd june
3rd june3rd june
OOP in C#
OOP in C#OOP in C#
OOP in C#
DevMix
 
Oop interfaces
Oop interfacesOop interfaces
Oop interfaces
Kaustubh Joshi
 
Abstract Data Types
Abstract Data TypesAbstract Data Types
Abstract Data Types
karthikeyanC40
 
Abstract class in java
Abstract class in javaAbstract class in java
Abstract class in java
Lovely Professional University
 
Chapter 3.1
Chapter 3.1Chapter 3.1
Chapter 3.1
sotlsoc
 
Algo>Abstract data type
Algo>Abstract data typeAlgo>Abstract data type
Algo>Abstract data type
Ain-ul-Moiz Khawaja
 
Elixir
ElixirElixir
Python functions
Python   functionsPython   functions
Python functions
Learnbay Datascience
 
Week 1: Getting Your Hands Dirty - Part 1
Week 1: Getting Your Hands Dirty - Part 1Week 1: Getting Your Hands Dirty - Part 1
Week 1: Getting Your Hands Dirty - Part 1
Jamshid Hashimi
 
Lect10
Lect10Lect10
Ppt lesson 07
Ppt lesson 07Ppt lesson 07
Ppt lesson 07
Linda Bodrie
 

What's hot (16)

CubeIT Tech - Algorithms
CubeIT Tech - AlgorithmsCubeIT Tech - Algorithms
CubeIT Tech - Algorithms
 
Some tips for taking the High School AP Java college board exam
Some tips for taking the High School  AP Java college board examSome tips for taking the High School  AP Java college board exam
Some tips for taking the High School AP Java college board exam
 
Accessing non static members from the main
Accessing non static members from the mainAccessing non static members from the main
Accessing non static members from the main
 
Structure in c
Structure in cStructure in c
Structure in c
 
3rd june
3rd june3rd june
3rd june
 
OOP in C#
OOP in C#OOP in C#
OOP in C#
 
Oop interfaces
Oop interfacesOop interfaces
Oop interfaces
 
Abstract Data Types
Abstract Data TypesAbstract Data Types
Abstract Data Types
 
Abstract class in java
Abstract class in javaAbstract class in java
Abstract class in java
 
Chapter 3.1
Chapter 3.1Chapter 3.1
Chapter 3.1
 
Algo>Abstract data type
Algo>Abstract data typeAlgo>Abstract data type
Algo>Abstract data type
 
Elixir
ElixirElixir
Elixir
 
Python functions
Python   functionsPython   functions
Python functions
 
Week 1: Getting Your Hands Dirty - Part 1
Week 1: Getting Your Hands Dirty - Part 1Week 1: Getting Your Hands Dirty - Part 1
Week 1: Getting Your Hands Dirty - Part 1
 
Lect10
Lect10Lect10
Lect10
 
Ppt lesson 07
Ppt lesson 07Ppt lesson 07
Ppt lesson 07
 

Viewers also liked

Ims brochure 2015
Ims brochure 2015Ims brochure 2015
Ims brochure 2015
Siver Stendahl
 
sgd 6
sgd 6sgd 6
sgd 6
rellyzshe
 
Jai maa-polymers
Jai maa-polymersJai maa-polymers
Jai maa-polymers
jaimaas
 
Yaumul hisab dirasah islamiah
Yaumul hisab dirasah islamiahYaumul hisab dirasah islamiah
Yaumul hisab dirasah islamiah
Sulthan Al-Fatih
 
Cara kerja internet
Cara kerja internetCara kerja internet
Cara kerja internet
aldisofyan
 
Biologia
BiologiaBiologia
Biologia
victorafonso7
 
Reach Out Academy Annual Report 2015
Reach Out Academy  Annual Report 2015Reach Out Academy  Annual Report 2015
Reach Out Academy Annual Report 2015
Karim Soliman
 
Social media strategy for ieee cusb
Social media strategy for ieee cusbSocial media strategy for ieee cusb
Social media strategy for ieee cusb
Karim Soliman
 
Dirasah islamiyah tauhid
Dirasah islamiyah tauhidDirasah islamiyah tauhid
Dirasah islamiyah tauhid
Sulthan Al-Fatih
 
Презентация Гусевского хрустального завода
Презентация Гусевского хрустального заводаПрезентация Гусевского хрустального завода
Презентация Гусевского хрустального завода
Алексей Федотов
 
Blackboard assessments
Blackboard assessmentsBlackboard assessments
Blackboard assessments
dattolia
 
Towergroup mobile photo_bill_pay_wp
Towergroup mobile photo_bill_pay_wpTowergroup mobile photo_bill_pay_wp
Towergroup mobile photo_bill_pay_wp
Raja Raja
 
The art in social media
The art in social media The art in social media
The art in social media
Karim Soliman
 
Unlocking Resilience through Culture
Unlocking Resilience through CultureUnlocking Resilience through Culture
Unlocking Resilience through Culture
Future Catalyst
 
Slide TF
Slide TFSlide TF
OKRs for social media specialist
OKRs for social media specialistOKRs for social media specialist
OKRs for social media specialist
Karim Soliman
 
Guide me to the Market - دٌلنى على السوق
Guide me to the Market - دٌلنى على السوقGuide me to the Market - دٌلنى على السوق
Guide me to the Market - دٌلنى على السوق
Karim Soliman
 
האמנה החדשה של עיריית בני ברק
האמנה החדשה של עיריית בני ברקהאמנה החדשה של עיריית בני ברק
האמנה החדשה של עיריית בני ברק
Roy Eyal
 
Marketing Management
Marketing Management Marketing Management
Marketing Management
Karim Soliman
 

Viewers also liked (20)

Ims brochure 2015
Ims brochure 2015Ims brochure 2015
Ims brochure 2015
 
sgd 6
sgd 6sgd 6
sgd 6
 
Jai maa-polymers
Jai maa-polymersJai maa-polymers
Jai maa-polymers
 
Yaumul hisab dirasah islamiah
Yaumul hisab dirasah islamiahYaumul hisab dirasah islamiah
Yaumul hisab dirasah islamiah
 
Cara kerja internet
Cara kerja internetCara kerja internet
Cara kerja internet
 
Biologia
BiologiaBiologia
Biologia
 
Reach Out Academy Annual Report 2015
Reach Out Academy  Annual Report 2015Reach Out Academy  Annual Report 2015
Reach Out Academy Annual Report 2015
 
Social media strategy for ieee cusb
Social media strategy for ieee cusbSocial media strategy for ieee cusb
Social media strategy for ieee cusb
 
Dirasah islamiyah tauhid
Dirasah islamiyah tauhidDirasah islamiyah tauhid
Dirasah islamiyah tauhid
 
อาเซ ยน
อาเซ ยนอาเซ ยน
อาเซ ยน
 
Презентация Гусевского хрустального завода
Презентация Гусевского хрустального заводаПрезентация Гусевского хрустального завода
Презентация Гусевского хрустального завода
 
Blackboard assessments
Blackboard assessmentsBlackboard assessments
Blackboard assessments
 
Towergroup mobile photo_bill_pay_wp
Towergroup mobile photo_bill_pay_wpTowergroup mobile photo_bill_pay_wp
Towergroup mobile photo_bill_pay_wp
 
The art in social media
The art in social media The art in social media
The art in social media
 
Unlocking Resilience through Culture
Unlocking Resilience through CultureUnlocking Resilience through Culture
Unlocking Resilience through Culture
 
Slide TF
Slide TFSlide TF
Slide TF
 
OKRs for social media specialist
OKRs for social media specialistOKRs for social media specialist
OKRs for social media specialist
 
Guide me to the Market - دٌلنى على السوق
Guide me to the Market - دٌلنى على السوقGuide me to the Market - دٌلنى على السوق
Guide me to the Market - دٌلنى على السوق
 
האמנה החדשה של עיריית בני ברק
האמנה החדשה של עיריית בני ברקהאמנה החדשה של עיריית בני ברק
האמנה החדשה של עיריית בני ברק
 
Marketing Management
Marketing Management Marketing Management
Marketing Management
 

Similar to Programming Concepts

Computer Sience, This is my presentation for beginners coding in python
Computer Sience, This is my presentation for beginners coding in pythonComputer Sience, This is my presentation for beginners coding in python
Computer Sience, This is my presentation for beginners coding in python
alin173596
 
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical ExpressionsUnit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
dubon07
 
python presentation.pptx
python presentation.pptxpython presentation.pptx
python presentation.pptx
NightTune44
 
Presentation 2nd
Presentation 2ndPresentation 2nd
Presentation 2nd
Connex
 
Java platform
Java platformJava platform
Java platform
Visithan
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
Srizan Pokrel
 
12.6-12.9.pptx
12.6-12.9.pptx12.6-12.9.pptx
12.6-12.9.pptx
WinterSnow16
 
Java best practices
Java best practicesJava best practices
Java best practices
Անուշիկ Միրզոյան
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3
Vijay Perepa
 
Data Structure and Algorithms –Introduction.pptx
Data Structure and Algorithms –Introduction.pptxData Structure and Algorithms –Introduction.pptx
Data Structure and Algorithms –Introduction.pptx
R S Anu Prabha
 
Md06 advance class features
Md06 advance class featuresMd06 advance class features
Md06 advance class features
Rakesh Madugula
 
ITFT - Java
ITFT - JavaITFT - Java
ITFT - Java
Blossom Sood
 
c-coding-standards-and-best-programming-practices.ppt
c-coding-standards-and-best-programming-practices.pptc-coding-standards-and-best-programming-practices.ppt
c-coding-standards-and-best-programming-practices.ppt
VinayakHospet1
 
Data structure
Data structureData structure
Data structure
Muhammad Farhan
 
Should begin with a letter and may contain additional letters and di.pdf
Should begin with a letter and may contain additional letters and di.pdfShould begin with a letter and may contain additional letters and di.pdf
Should begin with a letter and may contain additional letters and di.pdf
sudhinjv
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
Haitham El-Ghareeb
 
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
Mohammed Safwat Abu Kwaik
 
CSharp for Unity Day 3
CSharp for Unity Day 3CSharp for Unity Day 3
CSharp for Unity Day 3
Duong Thanh
 
Programming in Arduino (Part 2)
Programming in Arduino  (Part 2)Programming in Arduino  (Part 2)
Programming in Arduino (Part 2)
Niket Chandrawanshi
 
JAVA.pptx
JAVA.pptxJAVA.pptx

Similar to Programming Concepts (20)

Computer Sience, This is my presentation for beginners coding in python
Computer Sience, This is my presentation for beginners coding in pythonComputer Sience, This is my presentation for beginners coding in python
Computer Sience, This is my presentation for beginners coding in python
 
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical ExpressionsUnit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
Unit 4 - Basic ABAP statements, ABAP Structures and ABAP Logical Expressions
 
python presentation.pptx
python presentation.pptxpython presentation.pptx
python presentation.pptx
 
Presentation 2nd
Presentation 2ndPresentation 2nd
Presentation 2nd
 
Java platform
Java platformJava platform
Java platform
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
 
12.6-12.9.pptx
12.6-12.9.pptx12.6-12.9.pptx
12.6-12.9.pptx
 
Java best practices
Java best practicesJava best practices
Java best practices
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3
 
Data Structure and Algorithms –Introduction.pptx
Data Structure and Algorithms –Introduction.pptxData Structure and Algorithms –Introduction.pptx
Data Structure and Algorithms –Introduction.pptx
 
Md06 advance class features
Md06 advance class featuresMd06 advance class features
Md06 advance class features
 
ITFT - Java
ITFT - JavaITFT - Java
ITFT - Java
 
c-coding-standards-and-best-programming-practices.ppt
c-coding-standards-and-best-programming-practices.pptc-coding-standards-and-best-programming-practices.ppt
c-coding-standards-and-best-programming-practices.ppt
 
Data structure
Data structureData structure
Data structure
 
Should begin with a letter and may contain additional letters and di.pdf
Should begin with a letter and may contain additional letters and di.pdfShould begin with a letter and may contain additional letters and di.pdf
Should begin with a letter and may contain additional letters and di.pdf
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
 
CSharp for Unity Day 3
CSharp for Unity Day 3CSharp for Unity Day 3
CSharp for Unity Day 3
 
Programming in Arduino (Part 2)
Programming in Arduino  (Part 2)Programming in Arduino  (Part 2)
Programming in Arduino (Part 2)
 
JAVA.pptx
JAVA.pptxJAVA.pptx
JAVA.pptx
 

Recently uploaded

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 

Recently uploaded (20)

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 

Programming Concepts

  • 2. INTRODUCTION • In this presentation I will be explaining the very basics of programming and will include the following programming concepts in my presentation:     SELECTION ITERATION DATA STRUCTURE FUNCTIONS, PARAMETERS AND/OR RETURN VALUES
  • 3. TUTORIAL LESSON – PART 1 (SELECTION) IF ELSE STATEMENTS • An if statements can be used conjunctively with if else statements. • When the Boolean expression of an if statement is false, the if else statement will be executed. • Else if statements are incredibly useful when testing a number of conditions. • Else statements are use when none of the other conditions are true.
  • 4. TUTORIAL LESSON – PART 1 (SELECTION)
  • 5. TUTORIAL LESSON – PART 1 (SELECTION CONTINUED) SWITCH STATEMENTS • These are very similar to if statements, only it has many more conditions. • Switch statements tend to run faster than if statements. • They can be used with any numerical data type for example, char and int but not with text data types such as string.
  • 6. TUTORIAL LESSON – PART 1 (SELECTION CONTINUED)
  • 7. TUTORIAL LESSON – PART 2 (ITERATION) • The ultimate use of a loop is to repeat a block of code and is one of the most useful tasks in programming. • There are different types of loops, FOR loops are the most useful as they are an easy way of creating loops when the number of iterations are known.
  • 8. TUTORIAL LESSON – PART 3 (DATA STRUCTURE) • When including structures we must use the struct keyword followed by the structure name. • The curly brackets after struct will declare the things that are contained within the structure. • Struct is only a definition for what the structure will look like and so you have to declare a structure in memory of the student type. We will call it stud. • In order to access the structure name and the sub item a „.‟ must be used between the two.
  • 9. TUTORIAL LESSON – PART 3 (DATA STRUCTURE CONTINUED) • Arrays are a group of variables that uses one name instead of many. Individual variables are accessible by using a number. • To declare an array you must include square brackets after the name of the array. • The square brackets must include a number of variables/elements which are included within the array. • The number of arrays start from 0 (not 1) and can be displayed below the declaration of the array.
  • 10. TUTORIAL LESSON – PART 4 • We use the code “#include <iostream>” which will allow us to print words on the screen. • The code “using namespace std;” will allow you to enter lines of code without having to write out the full code. • “int main() { }” The curly brackets show where the main function starts and ends. Every program must include a main function and the word „int‟ is to give an indication as to what the return value will be.