SlideShare a Scribd company logo
1 of 16
Download to read offline
Computer
Programming
Syed Zaid Irshad
Outline
– Why Programming?
– The Programming Process
– What Programmers do?
– Programming as a Career
– Level of Programming Languages
– Computer Languages
Why Programming?
– Programming helps you understand computers.
– A computer is only a tool. If you learn how to write simple programs, you will gain more
knowledge about how a computer works.
– Writing a few simple programs increases your confidence level.
– Many people find great personal satisfaction in creating a set of instructions that solve a
problem.
– Learning programming lets you find out quickly whether you like programming and
whether you have the analytical turn of mind programmers need.
– Even if you decide that programming is not for you, understanding the process certainly
will increase your appreciation of what programmers and computers can do.
The Programming Process
– There are five main ingredients in the programming process:
– Defining the problem
– Planning the solution
– Coding the program
– Testing the program
– Documenting the program
The Programming Process
– Defining the problem
– Identifying what it is you know (input-given data), and what it is you want to obtain
(output-the result).
– Eventually, you produce a written agreement that, among other things, specifies the
kind of input, processing, and output required.
– This is not a simple process.
– Planning the solution
– It is a map of what your program is going to do and how it is going to do it.
The Programming Process
– Coding the program
– You will translate the logic from the flowchart or pseudocode-or some other tool-to a
programming language.
– As we have already noted, a programming language is a set of rules that provides a way of
instructing the computer what operations to perform.
– Testing the program
– Program may have some imperfections for the new programmers. So, the programmers
use following steps to over come.
– Desk-Checking
– Translating
– Debugging
The Programming Process
– Documenting the program
– Documenting is an ongoing, necessary process, although, as many programmers are,
you may be eager to pursue more exciting computer-centred activities.
– Documentation is a written detailed description of the programming cycle and
specific facts about the program.
– Typical program documentation materials include the origin and nature of the
problem, a brief narrative description of the program, logic tools such as flowcharts
and pseudocode, data-record descriptions, program listings, and testing results.
What Programmers do?
– In general, the programmer's job is to convert problem solutions into instructions for
the computer.
– The programmer prepares the instructions of a computer program and runs those
instructions on the computer, tests the program to see if it is working properly, and makes
corrections to the program.
– The programmer also writes a report on the program.
– These activities are all done to help a user fill a need, such as paying employees, billing
customers, or admitting students to college.
– The programming activities just described could be done, perhaps, as solo activities,
but a programmer typically interacts with a variety of people.
Programming as a Career
– Although many people make career changes into the computer field, few choose to
leave it.
– Surveys of computer professionals, especially programmers, consistently report a high
level of job satisfaction.
– There are several reasons for this contentment. One is the challenge-most jobs in the
computer industry are not routine.
– Another is security since established computer professionals can usually find work and
that work pays well-you will probably not be rich, but you should be comfortable.
Level of Programming
Languages
– There are five(5) levels or generations of programming languages:
– Machine language
– Assembly languages
– High-level languages
– Very high-level languages
– Natural languages
Level of Programming
Languages
– Machine language
– Humans do not like to deal in numbers alone-they prefer letters and words. But,
strictly speaking, numbers are what machine language is.
– This lowest level of language, machine language, represents data and program
instructions as 1s and 0s binary digits corresponding to the on and off electrical
states in the computer.
– Each type of computer has its machine language. In the early days of computing,
programmers had rudimentary systems for combining numbers to represent
instructions such as add and compare.
– Primitive by today's standards, the programs were not convenient for people to read
and use. The computer industry quickly moved to develop assembly languages.
Level of Programming
Languages
– Assembly languages
– Assembly languages are considered very low level-that is, they are not as convenient for
people to use as more recent languages.
– At the time they were developed, however, they were considered a great leap forward. To
replace the 1s and 0s used in machine language, assembly languages use mnemonic
codes, abbreviations that are easy to remember: A for Add, C for Compare, MP for
Multiply, STO for storing information in memory, and so on.
– Although these codes are not English words, they are still from the standpoint of human
convenience-preferable to numbers (0s and 1s) alone.
– Furthermore, assembly languages permit the use of names- perhaps RATE or TOTAL-for
memory locations instead of actual address numbers.
– Just like machine language, each type of computer has its assembly language.
Level of Programming
Languages
– High-level languages
– The first widespread use of high-level languages in the early 1960s transformed
programming into something quite different from what it had been.
– Programs were written in an English-like manner, thus making them more convenient
to use.
– As a result, a programmer could accomplish more with less effort, and programs
could now direct much more complex tasks.
– These so-called third-generation languages spurred the great increase in data
processing that characterized the 1960s and 1970s.
Level of Programming
Languages
– Very high-level languages
– The first is that they make a true break with the prior generation-they are non-
procedural.
– A procedural language tells the computer how a task is done: Add this, compare that,
do this if something is true, and so forth-a very specific step-by-step process.
– The first three generations of languages are all procedural. In a nonprocedural
language, the concept changes. Here, users define only what they want the computer
to do; the user does not provide the details of just how it is to be done.
– It is a lot easier and faster just to say what you want rather than how to get it. This
leads us to the issue of productivity, a key characteristic of fourth-generation
languages.
Level of Programming
Languages
– Natural languages
– The word "natural" has become almost as popular in computing circles as it has in the supermarket.
– Fifth-generation languages are, as you may guess, even more, ill-defined than fourth-generation languages.
– They are most often called natural languages because they resemble the "natural" spoken the English language, and, to the
manager new to computers for whom these languages are now aimed, natural means human-like.
– Instead of being forced to key correct commands and data names in the correct order, a manager tells the computer what to do
by keying in his or her own words.
– A manager can say the samething any number of ways. For example, "Get me tennis racket sales for January" works just as well
as "I want January tennis racket revenues.“
– Such a request may contain misspelt words, lack articles and verbs, and even use slang.
– The natural language translates human instructions-bad grammar, slang, and all-into code the computer understands.
– If it is not sure what the user has in mind, it politely asks for further explanation.
Computer Languages
– There are 7 categories of computer languages:
– Machine and assembly languages
– Algorithmic languages
– Business-oriented languages
– Computer programming language
– Education-oriented languages
– Object-oriented languages
– World wide web display languages

More Related Content

What's hot

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programmingmshellman
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1REHAN IJAZ
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer Ashim Lamichhane
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programmingRheigh Henley Calderon
 
Programming language
Programming languageProgramming language
Programming languageRajThakuri
 
Chapter 1 introduction to computers
Chapter 1   introduction to computersChapter 1   introduction to computers
Chapter 1 introduction to computershaider ali
 
Programming languages
Programming languagesProgramming languages
Programming languagesAkash Varaiya
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm designNahid Hasan
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem SolvingSukhendra Singh
 
Software and its types
Software and its typesSoftware and its types
Software and its typesAhmad Hussain
 
Classification of Computers
Classification of ComputersClassification of Computers
Classification of ComputersHarjinder Singh
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceDarshan Gohel
 

What's hot (20)

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programming
 
Programming language
Programming languageProgramming language
Programming language
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Types of system software
Types of system softwareTypes of system software
Types of system software
 
Chapter 1 introduction to computers
Chapter 1   introduction to computersChapter 1   introduction to computers
Chapter 1 introduction to computers
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm design
 
System software and Application software
System software and Application softwareSystem software and Application software
System software and Application software
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
Software and its types
Software and its typesSoftware and its types
Software and its types
 
Classification of Computers
Classification of ComputersClassification of Computers
Classification of Computers
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 

Similar to Computer Programming

alex presentation (1).pptx
alex presentation (1).pptxalex presentation (1).pptx
alex presentation (1).pptxGilGuerrero7
 
Specification Of The Programming Language Of Java
Specification Of The Programming Language Of JavaSpecification Of The Programming Language Of Java
Specification Of The Programming Language Of JavaKim Moore
 
Java And Community Support
Java And Community SupportJava And Community Support
Java And Community SupportWilliam Grosso
 
Dion computerprogramming
Dion computerprogrammingDion computerprogramming
Dion computerprogrammingcaseydion22
 
Dion computerprogramming
Dion computerprogrammingDion computerprogramming
Dion computerprogramminglittlecricket07
 
Types Of Coding Languages: A Complete Guide To Master Programming
Types Of Coding Languages: A Complete Guide To Master ProgrammingTypes Of Coding Languages: A Complete Guide To Master Programming
Types Of Coding Languages: A Complete Guide To Master Programmingcalltutors
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonJaya Kumari
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxChewe Lulembo
 
Problem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdfProblem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdfjlu08167
 
Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...Laura Martin
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 

Similar to Computer Programming (20)

alex presentation (1).pptx
alex presentation (1).pptxalex presentation (1).pptx
alex presentation (1).pptx
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Specification Of The Programming Language Of Java
Specification Of The Programming Language Of JavaSpecification Of The Programming Language Of Java
Specification Of The Programming Language Of Java
 
Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
 
Java And Community Support
Java And Community SupportJava And Community Support
Java And Community Support
 
System softare
System softareSystem softare
System softare
 
Dion computerprogramming
Dion computerprogrammingDion computerprogramming
Dion computerprogramming
 
Dion computerprogramming
Dion computerprogrammingDion computerprogramming
Dion computerprogramming
 
Learning to code in 2020
Learning to code in 2020Learning to code in 2020
Learning to code in 2020
 
Types Of Coding Languages: A Complete Guide To Master Programming
Types Of Coding Languages: A Complete Guide To Master ProgrammingTypes Of Coding Languages: A Complete Guide To Master Programming
Types Of Coding Languages: A Complete Guide To Master Programming
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Why Ruby?
Why Ruby?Why Ruby?
Why Ruby?
 
Why Ruby
Why RubyWhy Ruby
Why Ruby
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
Problem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdfProblem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdf
 
Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 

More from Syed Zaid Irshad

More from Syed Zaid Irshad (20)

Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
DBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_SolutionDBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_Solution
 
Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptx
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
Professional Issues in Computing
Professional Issues in ComputingProfessional Issues in Computing
Professional Issues in Computing
 
Reduce course notes class xi
Reduce course notes class xiReduce course notes class xi
Reduce course notes class xi
 
Reduce course notes class xii
Reduce course notes class xiiReduce course notes class xii
Reduce course notes class xii
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
C Language
C LanguageC Language
C Language
 
Flowchart
FlowchartFlowchart
Flowchart
 
Algorithm Pseudo
Algorithm PseudoAlgorithm Pseudo
Algorithm Pseudo
 
ICS 2nd Year Book Introduction
ICS 2nd Year Book IntroductionICS 2nd Year Book Introduction
ICS 2nd Year Book Introduction
 
Security, Copyright and the Law
Security, Copyright and the LawSecurity, Copyright and the Law
Security, Copyright and the Law
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Data Communication
Data CommunicationData Communication
Data Communication
 
Information Networks
Information NetworksInformation Networks
Information Networks
 
Basic Concept of Information Technology
Basic Concept of Information TechnologyBasic Concept of Information Technology
Basic Concept of Information Technology
 
Introduction to ICS 1st Year Book
Introduction to ICS 1st Year BookIntroduction to ICS 1st Year Book
Introduction to ICS 1st Year Book
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
 
Using subqueries to solve queries
Using subqueries to solve queriesUsing subqueries to solve queries
Using subqueries to solve queries
 

Recently uploaded

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
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
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
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
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 

Recently uploaded (20)

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
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
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
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
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 

Computer Programming

  • 2. Outline – Why Programming? – The Programming Process – What Programmers do? – Programming as a Career – Level of Programming Languages – Computer Languages
  • 3. Why Programming? – Programming helps you understand computers. – A computer is only a tool. If you learn how to write simple programs, you will gain more knowledge about how a computer works. – Writing a few simple programs increases your confidence level. – Many people find great personal satisfaction in creating a set of instructions that solve a problem. – Learning programming lets you find out quickly whether you like programming and whether you have the analytical turn of mind programmers need. – Even if you decide that programming is not for you, understanding the process certainly will increase your appreciation of what programmers and computers can do.
  • 4. The Programming Process – There are five main ingredients in the programming process: – Defining the problem – Planning the solution – Coding the program – Testing the program – Documenting the program
  • 5. The Programming Process – Defining the problem – Identifying what it is you know (input-given data), and what it is you want to obtain (output-the result). – Eventually, you produce a written agreement that, among other things, specifies the kind of input, processing, and output required. – This is not a simple process. – Planning the solution – It is a map of what your program is going to do and how it is going to do it.
  • 6. The Programming Process – Coding the program – You will translate the logic from the flowchart or pseudocode-or some other tool-to a programming language. – As we have already noted, a programming language is a set of rules that provides a way of instructing the computer what operations to perform. – Testing the program – Program may have some imperfections for the new programmers. So, the programmers use following steps to over come. – Desk-Checking – Translating – Debugging
  • 7. The Programming Process – Documenting the program – Documenting is an ongoing, necessary process, although, as many programmers are, you may be eager to pursue more exciting computer-centred activities. – Documentation is a written detailed description of the programming cycle and specific facts about the program. – Typical program documentation materials include the origin and nature of the problem, a brief narrative description of the program, logic tools such as flowcharts and pseudocode, data-record descriptions, program listings, and testing results.
  • 8. What Programmers do? – In general, the programmer's job is to convert problem solutions into instructions for the computer. – The programmer prepares the instructions of a computer program and runs those instructions on the computer, tests the program to see if it is working properly, and makes corrections to the program. – The programmer also writes a report on the program. – These activities are all done to help a user fill a need, such as paying employees, billing customers, or admitting students to college. – The programming activities just described could be done, perhaps, as solo activities, but a programmer typically interacts with a variety of people.
  • 9. Programming as a Career – Although many people make career changes into the computer field, few choose to leave it. – Surveys of computer professionals, especially programmers, consistently report a high level of job satisfaction. – There are several reasons for this contentment. One is the challenge-most jobs in the computer industry are not routine. – Another is security since established computer professionals can usually find work and that work pays well-you will probably not be rich, but you should be comfortable.
  • 10. Level of Programming Languages – There are five(5) levels or generations of programming languages: – Machine language – Assembly languages – High-level languages – Very high-level languages – Natural languages
  • 11. Level of Programming Languages – Machine language – Humans do not like to deal in numbers alone-they prefer letters and words. But, strictly speaking, numbers are what machine language is. – This lowest level of language, machine language, represents data and program instructions as 1s and 0s binary digits corresponding to the on and off electrical states in the computer. – Each type of computer has its machine language. In the early days of computing, programmers had rudimentary systems for combining numbers to represent instructions such as add and compare. – Primitive by today's standards, the programs were not convenient for people to read and use. The computer industry quickly moved to develop assembly languages.
  • 12. Level of Programming Languages – Assembly languages – Assembly languages are considered very low level-that is, they are not as convenient for people to use as more recent languages. – At the time they were developed, however, they were considered a great leap forward. To replace the 1s and 0s used in machine language, assembly languages use mnemonic codes, abbreviations that are easy to remember: A for Add, C for Compare, MP for Multiply, STO for storing information in memory, and so on. – Although these codes are not English words, they are still from the standpoint of human convenience-preferable to numbers (0s and 1s) alone. – Furthermore, assembly languages permit the use of names- perhaps RATE or TOTAL-for memory locations instead of actual address numbers. – Just like machine language, each type of computer has its assembly language.
  • 13. Level of Programming Languages – High-level languages – The first widespread use of high-level languages in the early 1960s transformed programming into something quite different from what it had been. – Programs were written in an English-like manner, thus making them more convenient to use. – As a result, a programmer could accomplish more with less effort, and programs could now direct much more complex tasks. – These so-called third-generation languages spurred the great increase in data processing that characterized the 1960s and 1970s.
  • 14. Level of Programming Languages – Very high-level languages – The first is that they make a true break with the prior generation-they are non- procedural. – A procedural language tells the computer how a task is done: Add this, compare that, do this if something is true, and so forth-a very specific step-by-step process. – The first three generations of languages are all procedural. In a nonprocedural language, the concept changes. Here, users define only what they want the computer to do; the user does not provide the details of just how it is to be done. – It is a lot easier and faster just to say what you want rather than how to get it. This leads us to the issue of productivity, a key characteristic of fourth-generation languages.
  • 15. Level of Programming Languages – Natural languages – The word "natural" has become almost as popular in computing circles as it has in the supermarket. – Fifth-generation languages are, as you may guess, even more, ill-defined than fourth-generation languages. – They are most often called natural languages because they resemble the "natural" spoken the English language, and, to the manager new to computers for whom these languages are now aimed, natural means human-like. – Instead of being forced to key correct commands and data names in the correct order, a manager tells the computer what to do by keying in his or her own words. – A manager can say the samething any number of ways. For example, "Get me tennis racket sales for January" works just as well as "I want January tennis racket revenues.“ – Such a request may contain misspelt words, lack articles and verbs, and even use slang. – The natural language translates human instructions-bad grammar, slang, and all-into code the computer understands. – If it is not sure what the user has in mind, it politely asks for further explanation.
  • 16. Computer Languages – There are 7 categories of computer languages: – Machine and assembly languages – Algorithmic languages – Business-oriented languages – Computer programming language – Education-oriented languages – Object-oriented languages – World wide web display languages