SlideShare a Scribd company logo
1 of 29
Lab 1
CS106 - Fundamentals of Computer Science
Presented by TA. Nada Kamel
Agenda
 Types of programming languages
 Difference between High and Low programming languages
 What is a Compiler?
 Problem Solving Techniques
 Pseudo code
 Algorithm
 Flow chart
 Example
 Implementation
Presented by TA. Nada Kamel
How People solve problems
 A Problem exists when what we have (Data) is not the same as what we
want (Information)
 People create a solution (called an Algorithm) which manipulates Data into
Information
 People do this quickly and often in a complex way
Presented by TA. Nada Kamel
How Computers solve problems
 Computers also use Algorithms to solve problems, and change data into
information
 Computers can only perform one simple step at a time
 Complex “Human” Algorithms must be broken down into simple step-by-
step instructions BEFORE they can be translated into computer code
Presented by TA. Nada Kamel
Programming Languages
Presented by TA. Nada Kamel
Types of programming languages
 There are two types of programming languages based on the code or
syntax they use..
 Low Programming Language
 High Programming Language
Presented by TA. Nada Kamel
Difference between programming
languages
 The difference between them is on the way we write their code.
 For example, Assembly is a low-level language where the user writes code
which is almost identical to the one computers understand.
Presented by TA. Nada Kamel
High Programming Language
 A high-level programming language uses a more natural and human-
readable syntax which makes it easier for humans to understand and write.
 Today, most programmers use some sort of a high-level language,
because it is much easier to learn and understand and often requires much
less work. For example, C++, C#, Java, e.t.c.
Presented by TA. Nada Kamel
What is a Compiler?
Presented by TA. Nada Kamel
Editor
Presented by TA. Nada Kamel
Source file Compiler
Linker
Object file
Other
object files
Executable
file
Loader
Tools
 Editor to be used:
 Microsoft Visual Studio  Windows
 Xcode  Mac
Presented by TA. Nada Kamel
Programming Phases
 A typical programming task can be divided into two phases:
 Problem solving phase
Produce an ordered sequence of steps that describe solution of problem
This sequence of steps is called an algorithm
 Implementation phase
Implement the program in some programming language
Presented by TA. Nada Kamel
Problem Solving Techniques
Presented by TA. Nada Kamel
Problem Solving
 Problem Solving is the ability to understand what you have, what you
want, and creating a set of instructions to change what you have into what
you want
 Good Problem Solving Skills are based on knowledge, experience and
logic
 Good Programmers NEVER make assumptions
Presented by TA. Nada Kamel
Expressing an algorithm
 A “Standard” way of describing an algorithm must exist if we expect our
solution to be understood by others easily
 There are standards in programming:
 PSEUDOCODE
 FLOWCHARTS
 PROGRAMMING LANGUAGE
Presented by TA. Nada Kamel
Pseudo Code
 “Pseudo” means “pretend” or “false”
 Pseudo Code is pretend or false computer code; generic English-like terms
that are somewhat like computer code
 Pseudo Code is not as standardized as flowcharts, and does not facilitate
the breaking down of problems as well as a flowchart does
Presented by TA. Nada Kamel
Flowchart
 Graphical representations of algorithms
 Tool to translate algorithms into software
 A Flowchart uses easy-to-understand symbols to represent actions on data
and the flow of data
 Flowcharts aid in breaking down a problem into simple steps
Presented by TA. Nada Kamel
Presented by TA. Nada Kamel
Flowcharting
Presented by TA. Nada Kamel
Example
Presented by TA. Nada Kamel
Example
 Write an algorithm to add 2 numbers.
Presented by TA. Nada Kamel
Pseudo Code
 Read first number
 Read second number
 Add first number to second number
 Print result of addition
Presented by TA. Nada Kamel
Algorithm and Flowchart
 Step 1: Input num1, num2
 Step 2: result  num1 + num2
 Step 3: Print result
Start
Input num1, num2
result  num1 + num2
Print result
EndPresented by TA. Nada Kamel
Implementation
Presented by TA. Nada Kamel
Implementation
 The code is divided into two parts:
 Libraries (such as <iostream>, <iomanip>, …)
 Body
 Declaration (int, float, char, string)
 User Input (cin)
 Processing
 Output (cout)
Presented by TA. Nada Kamel
How to write the code of the
problem?
Presented by TA. Nada Kamel
Presented by TA. Nada Kamel
using
Visual Studio
Presented by TA. Nada Kamel
using
Xcode
Any Questions?
Presented by TA. Nada Kamel

More Related Content

What's hot

Problem solving using Computer
Problem solving using ComputerProblem solving using Computer
Problem solving using ComputerDavid Livingston J
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life CycleFrankie Jones
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigmskasenerd
 
Algorithm &amp; flowchart
Algorithm &amp; flowchartAlgorithm &amp; flowchart
Algorithm &amp; flowchartsaurabh sen sky
 
Pj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentalsPj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentalsSasidharaRaoMarrapu
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CPrabu U
 
Using Pseudocode Statements and Flowchart Symbols
Using Pseudocode Statements and Flowchart SymbolsUsing Pseudocode Statements and Flowchart Symbols
Using Pseudocode Statements and Flowchart SymbolsAr Kyu Dee
 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodesDr Piyush Charan
 
Planning to computer program(southeast university)
Planning to computer program(southeast university)Planning to computer program(southeast university)
Planning to computer program(southeast university)Arup deb nath
 
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision tableProgramming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision tableAnjali Technosoft
 
Pf lec 01 intro
Pf lec 01 introPf lec 01 intro
Pf lec 01 introRajaKayani
 
Understanding Simple Program Logic
Understanding Simple Program LogicUnderstanding Simple Program Logic
Understanding Simple Program LogicAr Kyu Dee
 
Understanding Computer Systems
Understanding Computer SystemsUnderstanding Computer Systems
Understanding Computer SystemsAr Kyu Dee
 
Computer programming project 15sec
Computer programming project 15secComputer programming project 15sec
Computer programming project 15secJenny Brown
 
INTRODUCTION TO C++, Chapter 1
INTRODUCTION TO C++, Chapter 1INTRODUCTION TO C++, Chapter 1
INTRODUCTION TO C++, Chapter 1Mubarek Kurt
 

What's hot (20)

C++ ppt
C++ pptC++ ppt
C++ ppt
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Problem solving using Computer
Problem solving using ComputerProblem solving using Computer
Problem solving using Computer
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
 
Algorithm &amp; flowchart
Algorithm &amp; flowchartAlgorithm &amp; flowchart
Algorithm &amp; flowchart
 
Week10 final
Week10 finalWeek10 final
Week10 final
 
Pj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentalsPj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentals
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
What you should know before starting to learn programming?
What you should know before starting to learn programming?What you should know before starting to learn programming?
What you should know before starting to learn programming?
 
Using Pseudocode Statements and Flowchart Symbols
Using Pseudocode Statements and Flowchart SymbolsUsing Pseudocode Statements and Flowchart Symbols
Using Pseudocode Statements and Flowchart Symbols
 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
 
Planning to computer program(southeast university)
Planning to computer program(southeast university)Planning to computer program(southeast university)
Planning to computer program(southeast university)
 
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision tableProgramming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
 
Pf lec 01 intro
Pf lec 01 introPf lec 01 intro
Pf lec 01 intro
 
Understanding Simple Program Logic
Understanding Simple Program LogicUnderstanding Simple Program Logic
Understanding Simple Program Logic
 
Understanding Computer Systems
Understanding Computer SystemsUnderstanding Computer Systems
Understanding Computer Systems
 
Computer programming project 15sec
Computer programming project 15secComputer programming project 15sec
Computer programming project 15sec
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
INTRODUCTION TO C++, Chapter 1
INTRODUCTION TO C++, Chapter 1INTRODUCTION TO C++, Chapter 1
INTRODUCTION TO C++, Chapter 1
 

Similar to CS106 Lab 1 - Introduction

Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answersmkengkilili2011
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsOMWOMA JACKSON
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxNeil Mutia
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfMMRF2
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++Seble Nigussie
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing TechniquesAppili Vamsi Krishna
 
4 coding from algorithms
4 coding from algorithms4 coding from algorithms
4 coding from algorithmshccit
 

Similar to CS106 Lab 1 - Introduction (20)

Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
Slide 01
Slide 01Slide 01
Slide 01
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
6272 cnote
6272 cnote6272 cnote
6272 cnote
 
C progrmming
C progrmmingC progrmming
C progrmming
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentals
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Savitch ch 01
Savitch ch 01Savitch ch 01
Savitch ch 01
 
Savitch ch 01
Savitch ch 01Savitch ch 01
Savitch ch 01
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptx
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
4 coding from algorithms
4 coding from algorithms4 coding from algorithms
4 coding from algorithms
 
Intro1
Intro1Intro1
Intro1
 
Lecture 1-3.ppt
Lecture 1-3.pptLecture 1-3.ppt
Lecture 1-3.ppt
 

More from Nada Kamel

CS106 Lab 8 - Nested loops
CS106 Lab 8 - Nested loopsCS106 Lab 8 - Nested loops
CS106 Lab 8 - Nested loopsNada Kamel
 
CS106 Lab 7 - For loop
CS106 Lab 7 - For loopCS106 Lab 7 - For loop
CS106 Lab 7 - For loopNada Kamel
 
CS106 Lab 2 - Variables declaration
CS106 Lab 2 - Variables declarationCS106 Lab 2 - Variables declaration
CS106 Lab 2 - Variables declarationNada Kamel
 
CS106 Lab 9 - 1D array
CS106 Lab 9 - 1D arrayCS106 Lab 9 - 1D array
CS106 Lab 9 - 1D arrayNada Kamel
 
CS106 Lab 10 - Functions (passing by value)
CS106 Lab 10 - Functions (passing by value)CS106 Lab 10 - Functions (passing by value)
CS106 Lab 10 - Functions (passing by value)Nada Kamel
 
CS106 Lab 6 - While and Do..While loop
CS106 Lab 6 - While and Do..While loopCS106 Lab 6 - While and Do..While loop
CS106 Lab 6 - While and Do..While loopNada Kamel
 
CS106 Lab 4 - If statement
CS106 Lab 4 - If statementCS106 Lab 4 - If statement
CS106 Lab 4 - If statementNada Kamel
 
CS106 Lab 5 - Switch case
CS106 Lab 5 - Switch caseCS106 Lab 5 - Switch case
CS106 Lab 5 - Switch caseNada Kamel
 
CS106 Lab 11 - Functions (passing by reference)
CS106 Lab 11 - Functions (passing by reference)CS106 Lab 11 - Functions (passing by reference)
CS106 Lab 11 - Functions (passing by reference)Nada Kamel
 
CS106 Lab 3 - Modulus
CS106 Lab 3 - ModulusCS106 Lab 3 - Modulus
CS106 Lab 3 - ModulusNada Kamel
 

More from Nada Kamel (10)

CS106 Lab 8 - Nested loops
CS106 Lab 8 - Nested loopsCS106 Lab 8 - Nested loops
CS106 Lab 8 - Nested loops
 
CS106 Lab 7 - For loop
CS106 Lab 7 - For loopCS106 Lab 7 - For loop
CS106 Lab 7 - For loop
 
CS106 Lab 2 - Variables declaration
CS106 Lab 2 - Variables declarationCS106 Lab 2 - Variables declaration
CS106 Lab 2 - Variables declaration
 
CS106 Lab 9 - 1D array
CS106 Lab 9 - 1D arrayCS106 Lab 9 - 1D array
CS106 Lab 9 - 1D array
 
CS106 Lab 10 - Functions (passing by value)
CS106 Lab 10 - Functions (passing by value)CS106 Lab 10 - Functions (passing by value)
CS106 Lab 10 - Functions (passing by value)
 
CS106 Lab 6 - While and Do..While loop
CS106 Lab 6 - While and Do..While loopCS106 Lab 6 - While and Do..While loop
CS106 Lab 6 - While and Do..While loop
 
CS106 Lab 4 - If statement
CS106 Lab 4 - If statementCS106 Lab 4 - If statement
CS106 Lab 4 - If statement
 
CS106 Lab 5 - Switch case
CS106 Lab 5 - Switch caseCS106 Lab 5 - Switch case
CS106 Lab 5 - Switch case
 
CS106 Lab 11 - Functions (passing by reference)
CS106 Lab 11 - Functions (passing by reference)CS106 Lab 11 - Functions (passing by reference)
CS106 Lab 11 - Functions (passing by reference)
 
CS106 Lab 3 - Modulus
CS106 Lab 3 - ModulusCS106 Lab 3 - Modulus
CS106 Lab 3 - Modulus
 

Recently uploaded

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 

Recently uploaded (20)

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 

CS106 Lab 1 - Introduction

  • 1. Lab 1 CS106 - Fundamentals of Computer Science Presented by TA. Nada Kamel
  • 2. Agenda  Types of programming languages  Difference between High and Low programming languages  What is a Compiler?  Problem Solving Techniques  Pseudo code  Algorithm  Flow chart  Example  Implementation Presented by TA. Nada Kamel
  • 3. How People solve problems  A Problem exists when what we have (Data) is not the same as what we want (Information)  People create a solution (called an Algorithm) which manipulates Data into Information  People do this quickly and often in a complex way Presented by TA. Nada Kamel
  • 4. How Computers solve problems  Computers also use Algorithms to solve problems, and change data into information  Computers can only perform one simple step at a time  Complex “Human” Algorithms must be broken down into simple step-by- step instructions BEFORE they can be translated into computer code Presented by TA. Nada Kamel
  • 6. Types of programming languages  There are two types of programming languages based on the code or syntax they use..  Low Programming Language  High Programming Language Presented by TA. Nada Kamel
  • 7. Difference between programming languages  The difference between them is on the way we write their code.  For example, Assembly is a low-level language where the user writes code which is almost identical to the one computers understand. Presented by TA. Nada Kamel
  • 8. High Programming Language  A high-level programming language uses a more natural and human- readable syntax which makes it easier for humans to understand and write.  Today, most programmers use some sort of a high-level language, because it is much easier to learn and understand and often requires much less work. For example, C++, C#, Java, e.t.c. Presented by TA. Nada Kamel
  • 9. What is a Compiler? Presented by TA. Nada Kamel
  • 10. Editor Presented by TA. Nada Kamel Source file Compiler Linker Object file Other object files Executable file Loader
  • 11. Tools  Editor to be used:  Microsoft Visual Studio  Windows  Xcode  Mac Presented by TA. Nada Kamel
  • 12. Programming Phases  A typical programming task can be divided into two phases:  Problem solving phase Produce an ordered sequence of steps that describe solution of problem This sequence of steps is called an algorithm  Implementation phase Implement the program in some programming language Presented by TA. Nada Kamel
  • 14. Problem Solving  Problem Solving is the ability to understand what you have, what you want, and creating a set of instructions to change what you have into what you want  Good Problem Solving Skills are based on knowledge, experience and logic  Good Programmers NEVER make assumptions Presented by TA. Nada Kamel
  • 15. Expressing an algorithm  A “Standard” way of describing an algorithm must exist if we expect our solution to be understood by others easily  There are standards in programming:  PSEUDOCODE  FLOWCHARTS  PROGRAMMING LANGUAGE Presented by TA. Nada Kamel
  • 16. Pseudo Code  “Pseudo” means “pretend” or “false”  Pseudo Code is pretend or false computer code; generic English-like terms that are somewhat like computer code  Pseudo Code is not as standardized as flowcharts, and does not facilitate the breaking down of problems as well as a flowchart does Presented by TA. Nada Kamel
  • 17. Flowchart  Graphical representations of algorithms  Tool to translate algorithms into software  A Flowchart uses easy-to-understand symbols to represent actions on data and the flow of data  Flowcharts aid in breaking down a problem into simple steps Presented by TA. Nada Kamel
  • 18. Presented by TA. Nada Kamel
  • 21. Example  Write an algorithm to add 2 numbers. Presented by TA. Nada Kamel
  • 22. Pseudo Code  Read first number  Read second number  Add first number to second number  Print result of addition Presented by TA. Nada Kamel
  • 23. Algorithm and Flowchart  Step 1: Input num1, num2  Step 2: result  num1 + num2  Step 3: Print result Start Input num1, num2 result  num1 + num2 Print result EndPresented by TA. Nada Kamel
  • 25. Implementation  The code is divided into two parts:  Libraries (such as <iostream>, <iomanip>, …)  Body  Declaration (int, float, char, string)  User Input (cin)  Processing  Output (cout) Presented by TA. Nada Kamel
  • 26. How to write the code of the problem? Presented by TA. Nada Kamel
  • 27. Presented by TA. Nada Kamel using Visual Studio
  • 28. Presented by TA. Nada Kamel using Xcode
  • 29. Any Questions? Presented by TA. Nada Kamel

Editor's Notes

  1. Will be given in the next lab inshAllah.
  2. Will be given in the next lab inshAllah.
  3. Will be given in the next lab inshAllah.