SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Tutor: Bilal Janjooa Assistant Professor
The University of Lahore
MS Telecom. Eng. From The University of Sunderland UK
1Bilal Janjooa bilal.janjooa@yahoo.co.uk
Lecture No. 1
2Bilal Janjooa bilal.janjooa@yahoo.co.uk
Assessments
Quiz & Assignments 25% 25 Marks
Mid Exam 25% 25 Marks
Final Exam 50% 50 Marks
3Bilal Janjooa bilal.janjooa@yahoo.co.uk
Course Objectives
Objectives of this course are:
1. To appreciate the need for a programming
language
2. To introduce the concept and usability of the
structured programming methodology
3. To develop proficiency in making useful
software using the C language
4Bilal Janjooa bilal.janjooa@yahoo.co.uk
5
What Is a Computer?
 Computer
 Performs computations and makes logical decisions
 Millions / billions times faster than human beings
 Computer programs
 Sets of instructions by which a computer processes data
 Hardware
 Physical devices of computer system
 Software
 Programs that run on computers
Bilal Janjooa bilal.janjooa@yahoo.co.uk
6
Computer Organization
 Six logical units of computer system
 Input unit
 Mouse, keyboard
 Output unit
 Printer, monitor, audio speakers
 Memory unit
 Retains input and processed information
 Arithmetic and logic unit (ALU)
 Performs calculations
 Central processing unit (CPU)
 Supervises operation of other devices
 Secondary storage unit
 Hard drives, floppy drives
Bilal Janjooa bilal.janjooa@yahoo.co.uk
Program
“An accurate sequence of steps to
solve a particular problem”
7Bilal Janjooa bilal.janjooa@yahoo.co.uk
Critical Skills
 Analysis
 Critical Thinking
 Attention to Detail
8Bilal Janjooa bilal.janjooa@yahoo.co.uk
Design Recipe
To design a program properly, we must:
 Analyze a problem statement, typically
expressed as a word problem
 Formulate statements and comments in a
specific language
 Evaluate and revise the activities in light of
checks and tests
9Bilal Janjooa bilal.janjooa@yahoo.co.uk
 PAY ATTENTION TO DETAIL
 These skills are useful for
anybody
 All assignments in this course
should follow the these
guidelines
10Bilal Janjooa bilal.janjooa@yahoo.co.uk
Computers are
STUPID
11Bilal Janjooa bilal.janjooa@yahoo.co.uk
Humans are
even more…….
12Bilal Janjooa bilal.janjooa@yahoo.co.uk
Think Reuse
13Bilal Janjooa bilal.janjooa@yahoo.co.uk
Area of the Ring
Inner
Circle
Outer
Circle
Area of Inner Circle____Area of Outer Circle = Area of the Ring
14Bilal Janjooa bilal.janjooa@yahoo.co.uk
 Think Reuse
 Think User Interface
 Comments liberally
15Bilal Janjooa bilal.janjooa@yahoo.co.uk
Logical Error
Lewis Carol: “Through the Looking Glass”
“Twas brillig, and the slithy toves
Did gyre and gimble in the wabe “
16Bilal Janjooa bilal.janjooa@yahoo.co.uk
Machine Languages, Assembly Languages,
and High-level Languages
 Three types of programming languages
 Machine languages
 Strings of numbers giving machine specific instructions
 Example:
+1300042774 (these would really be in binary)
+1400593419
+1200274027
 Assembly languages
 English-like abbreviations representing elementary
computer operations (translated via assemblers)
 Example:
LOAD BASEPAY
ADD OVERPAY
STORE GROSSPAY
17
17Bilal Janjooa bilal.janjooa@yahoo.co.uk
Machine Languages, Assembly Languages,
and High-level Languages
 High-level languages
 Instructions closer to everyday English
 English is a natural language. Although high level
programming languages are closer to natural languages.
 Use mathematical notations (translated via compilers)
 Example:
grossPay = basePay + overTimePay
18
18Bilal Janjooa bilal.janjooa@yahoo.co.uk
Books
 Deitel & Deitel :– C++ How to Program
 Kernighan and Ritchie:-
The C Programming Language
19Bilal Janjooa bilal.janjooa@yahoo.co.uk
Thank You
20Bilal Janjooa bilal.janjooa@yahoo.co.uk

Weitere ähnliche Inhalte

Ähnlich wie Programming fundamentals ch 1

Educate 2017: Inclusivity Means Opportunity: Why accessibility is a priority
Educate 2017: Inclusivity Means Opportunity: Why accessibility is a priorityEducate 2017: Inclusivity Means Opportunity: Why accessibility is a priority
Educate 2017: Inclusivity Means Opportunity: Why accessibility is a priorityLearnosity
 
Student Usability Study of BlueQuill LMS
Student Usability Study of BlueQuill LMSStudent Usability Study of BlueQuill LMS
Student Usability Study of BlueQuill LMSTawana Washington
 
CIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docx
CIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docxCIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docx
CIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docxclarebernice
 
51 ways to reduce your out-of-class marking
51 ways to reduce your out-of-class marking51 ways to reduce your out-of-class marking
51 ways to reduce your out-of-class markingjohn6938
 
IWMW 2006: User Testing on a Shoestring Budget (2)
IWMW 2006: User Testing on a Shoestring Budget (2)IWMW 2006: User Testing on a Shoestring Budget (2)
IWMW 2006: User Testing on a Shoestring Budget (2)IWMW
 
Workshop on programming contest
Workshop on programming contestWorkshop on programming contest
Workshop on programming contestAbir Khan
 
00 C++ For Engineers and Scientists.pdf
00 C++ For Engineers and Scientists.pdf00 C++ For Engineers and Scientists.pdf
00 C++ For Engineers and Scientists.pdfKirubelWondwoson1
 
LS_13_Orientation_F13
LS_13_Orientation_F13LS_13_Orientation_F13
LS_13_Orientation_F13Jim Walker
 
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...ciyamala kushbu
 

Ähnlich wie Programming fundamentals ch 1 (11)

Educate 2017: Inclusivity Means Opportunity: Why accessibility is a priority
Educate 2017: Inclusivity Means Opportunity: Why accessibility is a priorityEducate 2017: Inclusivity Means Opportunity: Why accessibility is a priority
Educate 2017: Inclusivity Means Opportunity: Why accessibility is a priority
 
Student Usability Study of BlueQuill LMS
Student Usability Study of BlueQuill LMSStudent Usability Study of BlueQuill LMS
Student Usability Study of BlueQuill LMS
 
CIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docx
CIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docxCIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docx
CIS 499 – Faculty Notes(Prerequisite To be taken last or ne.docx
 
51 ways to reduce your out-of-class marking
51 ways to reduce your out-of-class marking51 ways to reduce your out-of-class marking
51 ways to reduce your out-of-class marking
 
IWMW 2006: User Testing on a Shoestring Budget (2)
IWMW 2006: User Testing on a Shoestring Budget (2)IWMW 2006: User Testing on a Shoestring Budget (2)
IWMW 2006: User Testing on a Shoestring Budget (2)
 
Workshop on programming contest
Workshop on programming contestWorkshop on programming contest
Workshop on programming contest
 
00 C++ For Engineers and Scientists.pdf
00 C++ For Engineers and Scientists.pdf00 C++ For Engineers and Scientists.pdf
00 C++ For Engineers and Scientists.pdf
 
LS_13_Orientation_F13
LS_13_Orientation_F13LS_13_Orientation_F13
LS_13_Orientation_F13
 
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
 
Engl313 Syllabus 2018
Engl313 Syllabus 2018Engl313 Syllabus 2018
Engl313 Syllabus 2018
 
Administrative
AdministrativeAdministrative
Administrative
 

Kürzlich hochgeladen

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
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.MaryamAhmad92
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
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.pptxMaritesTamaniVerdade
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
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 . pdfQucHHunhnh
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
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).pptxVishalSingh1417
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 

Kürzlich hochgeladen (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
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.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
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
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
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
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
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
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

Programming fundamentals ch 1

  • 1. Tutor: Bilal Janjooa Assistant Professor The University of Lahore MS Telecom. Eng. From The University of Sunderland UK 1Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 2. Lecture No. 1 2Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 3. Assessments Quiz & Assignments 25% 25 Marks Mid Exam 25% 25 Marks Final Exam 50% 50 Marks 3Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 4. Course Objectives Objectives of this course are: 1. To appreciate the need for a programming language 2. To introduce the concept and usability of the structured programming methodology 3. To develop proficiency in making useful software using the C language 4Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 5. 5 What Is a Computer?  Computer  Performs computations and makes logical decisions  Millions / billions times faster than human beings  Computer programs  Sets of instructions by which a computer processes data  Hardware  Physical devices of computer system  Software  Programs that run on computers Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 6. 6 Computer Organization  Six logical units of computer system  Input unit  Mouse, keyboard  Output unit  Printer, monitor, audio speakers  Memory unit  Retains input and processed information  Arithmetic and logic unit (ALU)  Performs calculations  Central processing unit (CPU)  Supervises operation of other devices  Secondary storage unit  Hard drives, floppy drives Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 7. Program “An accurate sequence of steps to solve a particular problem” 7Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 8. Critical Skills  Analysis  Critical Thinking  Attention to Detail 8Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 9. Design Recipe To design a program properly, we must:  Analyze a problem statement, typically expressed as a word problem  Formulate statements and comments in a specific language  Evaluate and revise the activities in light of checks and tests 9Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 10.  PAY ATTENTION TO DETAIL  These skills are useful for anybody  All assignments in this course should follow the these guidelines 10Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 11. Computers are STUPID 11Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 12. Humans are even more……. 12Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 13. Think Reuse 13Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 14. Area of the Ring Inner Circle Outer Circle Area of Inner Circle____Area of Outer Circle = Area of the Ring 14Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 15.  Think Reuse  Think User Interface  Comments liberally 15Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 16. Logical Error Lewis Carol: “Through the Looking Glass” “Twas brillig, and the slithy toves Did gyre and gimble in the wabe “ 16Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 17. Machine Languages, Assembly Languages, and High-level Languages  Three types of programming languages  Machine languages  Strings of numbers giving machine specific instructions  Example: +1300042774 (these would really be in binary) +1400593419 +1200274027  Assembly languages  English-like abbreviations representing elementary computer operations (translated via assemblers)  Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY 17 17Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 18. Machine Languages, Assembly Languages, and High-level Languages  High-level languages  Instructions closer to everyday English  English is a natural language. Although high level programming languages are closer to natural languages.  Use mathematical notations (translated via compilers)  Example: grossPay = basePay + overTimePay 18 18Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 19. Books  Deitel & Deitel :– C++ How to Program  Kernighan and Ritchie:- The C Programming Language 19Bilal Janjooa bilal.janjooa@yahoo.co.uk
  • 20. Thank You 20Bilal Janjooa bilal.janjooa@yahoo.co.uk