SlideShare uma empresa Scribd logo
1 de 22
PROGRAMMING
3RD GRADING PERIOD – LESSON 2
What is Programming?

Programming is a creative process done
by programmers to instruct a computer
on how to do a task.
Programming is instructing a computer
to do something for you with the help of
a programming language.
What is a Program?
 In computing, a program is a specific set of ordered
operations for a computer to perform. In the modern
computer that John von Neumann outlined in 1945,
the program contains a one-at-a-time sequence of
instructions that the computer follows. Typically, the
program is put into a storage area accessible to the
computer. The computer gets one instruction and
performs it and then gets the next instruction.
What is a Programmer?

A programmer is a person who
prepares instructions for
computers.
A programmer needs to develop a welldefined concept of how to solve a
problem. Then this concept must be
translated into a computer language.
Finally, the program needs to be typed
into the computer, tested, and
debugged before being placed into
service.
What is a Programming Language?

Programming Language is a
language used to give
instructions to computers.
During the 1960s and 1970s, a huge variety
of programming languages were developed,
most of which are no longer in wide use.
Moreover, a substantial amount of
programming is now done with special
program development tools (e.g., Visual
Basic), or in programming languages that
pertain to specific pieces of software (e.g.,
Maple) rather than by simply writing
instructions in a general-purpose language.
The following is a rough classification of
programming languages.
1. General-purpose languages for large, complex programs: PL/I, C, C++, Pascal,
Modula-2, Ada, Java, C#.
2. General-purpose languages for smaller programs: BASIC, Visual Basic, Pascal,
Python.
3. Mathematical calculation, science, and engineering: FORTRAN, APL, Maple, and
the general-purpose languages named above.
4. Business data processing: COBOL, RPG. Where microcomputers are involved,
BASIC, C, and languages associated with specific database products are also
widely used.
5. Artificial intelligence and programs of extreme logical complexity: Lisp and
Prolog.
6. String handling and scripting: SNOBOL, REXX, Awk, Perl, Python, VBSCRIPT,
JavaScript.
Another useful classification is based
on the way the program is organized.
1. Sequential languages treat the program as
a series of steps, with an occasional GOTO
statement as a way of breaking out of the
sequence. In this category are FORTRAN,
BASIC, and COBOL(though COBOL also
allows programs to be written in a style
more like a block-structured language).
2.Block-structured languages
encourage structured
programming by allowing the
programmer to group statements
into functional units. This category
originated with Algol and now
includes Pascal, Modula-2, C, PL/I,
and Ada.
Structured Programming?
 Structured programming is a programming technique
that emphasizes clear logic, modularity, and avoidance
of GO TO statements (which are intrinsically errorprone).
 Structured programming is a style of programming
designed to make programs more comprehensible
and programming errors less frequent.
3.Object-oriented languages allow the
programmer to define new data types
and associate procedures with them.
Languages of this type include C++,
Java, C#, object-oriented extensions of
Pascal, and Smalltalk.
4.Symbolic languages allow the program
to examine and modify itself, treating
instructions as data. Lisp and Prolog fall
into this category.
Although names of some
programming languages are
normally written in all capital
letters, names of most languages
are not, even if they are acronyms.
Usage varies from language to
language. With some, usage has
shifted over the years.
BASIC?
 BASIC (Beginner’s All-purpose Symbolic Instruction
Code) a computer language designed by John Kemeny
and Thomas Kurtz in 1964 and popularized by
Microsoft in the 1970s.
 BASIC is good for programming simple calculations
quickly, and you do not have to learn much of the
language in order to begin using it.
 Because no declarations are required, programs can
be quite short.
 In the 1970s and 1980s, numerous software vendors,
especially Microsoft, added features to BASIC to
support STRUCTURED PROGRAMMING and a wide
variety of DATASTRUCTURES. Today, BASIC is one of
the most complex programming languages in wide
use, incorporating features from Pascal, FORTRAN,
and C. Line numbers are no longer necessary.
 However, BASIC is still easy for beginners to use, and
the newest BASIC compilers still accept programs
written in Kemeny and Kurtz’s original language.
BASIC program and its output
10 REM Temperature conversion program
20 PRINT ”Temperature in Fahrenheit”;
30 INPUT F
40 LET C=(F-32)*5/9
50 PRINT F;” F equals ”;
60 PRINT C;” C”
70 END
Temperature in Fahrenheit? 98
98 F equals 36.66667 C
VISUAL BASIC?
 One of the first successful interactive development
environments for Windows programming, introduced by
Microsoft in 1991.
 Programmers can lay out the program’s windows graphically
and write BASIC code to specify what happens when each
button is clicked or other events occur.
 Any part of the layout or code can be changed at any time.
 Unlike in earlier Windows programming environments, the
programmer need not write any general code to initialize
windows, handle events, or interact with the operating
system.
The current version is called Visual Basic .NET
or VB.NET and uses the .NET Framework for
fully object-oriented programming. Similar
products for other programming languages
include Microsoft’s Visual C++ and Visual C#
and Borland’s Delphi and Kylix (for Pascal),
JBuilder (for Java), and C++ Builder.
.NET Framework?
 An application program interface (API) for Microsoft Windows,
introduced in 2001 as a downloadable add-on to Windows 2000
and XP and included in subsequent versions of Windows.
 The purpose of the .NET Framework is to reduce the amount of
work programmers have to do, while at the same time increasing
reliability and introducing Java-like portability.
 The .NET Framework is fully object-oriented.
 The .NET Framework manages the memory used by each
program.
 Like Java, the .NET Framework normally compiles programs into
bytecode, a concise notation that is converted to machine
language when the program is ready to run.
Bytecode?
Bytecode is the compiled code that compilers for
Java and C# produce. It isn't true machine code
but a simpler code made up of instructions that
are one byte long.

Mais conteúdo relacionado

Mais procurados

Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
smkengkilili2011
 
Overview new programming languages
Overview new programming languagesOverview new programming languages
Overview new programming languages
umoren
 
Chapter 5-programming
Chapter 5-programmingChapter 5-programming
Chapter 5-programming
Aten Kecik
 
Concept of computer programming iv
Concept of computer programming ivConcept of computer programming iv
Concept of computer programming iv
Eyelean xilef
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
Kak Yong
 

Mais procurados (20)

Programming language
Programming languageProgramming language
Programming language
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Programming language
Programming languageProgramming language
Programming language
 
La5 programming
La5  programmingLa5  programming
La5 programming
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
 
Notacd07
Notacd07Notacd07
Notacd07
 
Computer Programming Overview
Computer Programming OverviewComputer Programming Overview
Computer Programming Overview
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming Languages
 
Programming Languages | Computer Science
Programming Languages | Computer ScienceProgramming Languages | Computer Science
Programming Languages | Computer Science
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Overview new programming languages
Overview new programming languagesOverview new programming languages
Overview new programming languages
 
Chapter 5-programming
Chapter 5-programmingChapter 5-programming
Chapter 5-programming
 
Coding vs programming
Coding vs programmingCoding vs programming
Coding vs programming
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Concept of computer programming iv
Concept of computer programming ivConcept of computer programming iv
Concept of computer programming iv
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Programming
ProgrammingProgramming
Programming
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
Unit 1
Unit 1Unit 1
Unit 1
 

Semelhante a Programming lesson1

Unit 12 section 1 - computer programming
Unit 12   section 1 - computer programmingUnit 12   section 1 - computer programming
Unit 12 section 1 - computer programming
dlwadsworth
 
Programming language (JGMNHS)
Programming language (JGMNHS)Programming language (JGMNHS)
Programming language (JGMNHS)
Katherine Gamboa
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
AmanGunner
 

Semelhante a Programming lesson1 (20)

Programming landuages
Programming landuagesProgramming landuages
Programming landuages
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programming
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming Language
 
COMP LESSON 2 - COMPUTER PROGRAMING 2023
COMP LESSON 2 - COMPUTER  PROGRAMING 2023COMP LESSON 2 - COMPUTER  PROGRAMING 2023
COMP LESSON 2 - COMPUTER PROGRAMING 2023
 
Comso c++
Comso c++Comso c++
Comso c++
 
Programming Part 01
Programming Part 01Programming Part 01
Programming Part 01
 
Assignment on basic programming language
Assignment on  basic programming languageAssignment on  basic programming language
Assignment on basic programming language
 
Nota programming
Nota programmingNota programming
Nota programming
 
Unit 12 section 1 - computer programming
Unit 12   section 1 - computer programmingUnit 12   section 1 - computer programming
Unit 12 section 1 - computer programming
 
Notacd071
Notacd071Notacd071
Notacd071
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Programming language (JGMNHS)
Programming language (JGMNHS)Programming language (JGMNHS)
Programming language (JGMNHS)
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptx
 
Ayushi
AyushiAyushi
Ayushi
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
 
Ict topic 5
Ict topic 5Ict topic 5
Ict topic 5
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Programming lesson1

  • 2. What is Programming? Programming is a creative process done by programmers to instruct a computer on how to do a task. Programming is instructing a computer to do something for you with the help of a programming language.
  • 3. What is a Program?  In computing, a program is a specific set of ordered operations for a computer to perform. In the modern computer that John von Neumann outlined in 1945, the program contains a one-at-a-time sequence of instructions that the computer follows. Typically, the program is put into a storage area accessible to the computer. The computer gets one instruction and performs it and then gets the next instruction.
  • 4. What is a Programmer? A programmer is a person who prepares instructions for computers.
  • 5. A programmer needs to develop a welldefined concept of how to solve a problem. Then this concept must be translated into a computer language. Finally, the program needs to be typed into the computer, tested, and debugged before being placed into service.
  • 6. What is a Programming Language? Programming Language is a language used to give instructions to computers.
  • 7. During the 1960s and 1970s, a huge variety of programming languages were developed, most of which are no longer in wide use. Moreover, a substantial amount of programming is now done with special program development tools (e.g., Visual Basic), or in programming languages that pertain to specific pieces of software (e.g., Maple) rather than by simply writing instructions in a general-purpose language.
  • 8. The following is a rough classification of programming languages. 1. General-purpose languages for large, complex programs: PL/I, C, C++, Pascal, Modula-2, Ada, Java, C#. 2. General-purpose languages for smaller programs: BASIC, Visual Basic, Pascal, Python. 3. Mathematical calculation, science, and engineering: FORTRAN, APL, Maple, and the general-purpose languages named above. 4. Business data processing: COBOL, RPG. Where microcomputers are involved, BASIC, C, and languages associated with specific database products are also widely used. 5. Artificial intelligence and programs of extreme logical complexity: Lisp and Prolog. 6. String handling and scripting: SNOBOL, REXX, Awk, Perl, Python, VBSCRIPT, JavaScript.
  • 9. Another useful classification is based on the way the program is organized. 1. Sequential languages treat the program as a series of steps, with an occasional GOTO statement as a way of breaking out of the sequence. In this category are FORTRAN, BASIC, and COBOL(though COBOL also allows programs to be written in a style more like a block-structured language).
  • 10. 2.Block-structured languages encourage structured programming by allowing the programmer to group statements into functional units. This category originated with Algol and now includes Pascal, Modula-2, C, PL/I, and Ada.
  • 11. Structured Programming?  Structured programming is a programming technique that emphasizes clear logic, modularity, and avoidance of GO TO statements (which are intrinsically errorprone).  Structured programming is a style of programming designed to make programs more comprehensible and programming errors less frequent.
  • 12. 3.Object-oriented languages allow the programmer to define new data types and associate procedures with them. Languages of this type include C++, Java, C#, object-oriented extensions of Pascal, and Smalltalk.
  • 13. 4.Symbolic languages allow the program to examine and modify itself, treating instructions as data. Lisp and Prolog fall into this category.
  • 14. Although names of some programming languages are normally written in all capital letters, names of most languages are not, even if they are acronyms. Usage varies from language to language. With some, usage has shifted over the years.
  • 15. BASIC?  BASIC (Beginner’s All-purpose Symbolic Instruction Code) a computer language designed by John Kemeny and Thomas Kurtz in 1964 and popularized by Microsoft in the 1970s.  BASIC is good for programming simple calculations quickly, and you do not have to learn much of the language in order to begin using it.  Because no declarations are required, programs can be quite short.
  • 16.  In the 1970s and 1980s, numerous software vendors, especially Microsoft, added features to BASIC to support STRUCTURED PROGRAMMING and a wide variety of DATASTRUCTURES. Today, BASIC is one of the most complex programming languages in wide use, incorporating features from Pascal, FORTRAN, and C. Line numbers are no longer necessary.  However, BASIC is still easy for beginners to use, and the newest BASIC compilers still accept programs written in Kemeny and Kurtz’s original language.
  • 17. BASIC program and its output 10 REM Temperature conversion program 20 PRINT ”Temperature in Fahrenheit”; 30 INPUT F 40 LET C=(F-32)*5/9 50 PRINT F;” F equals ”; 60 PRINT C;” C” 70 END Temperature in Fahrenheit? 98 98 F equals 36.66667 C
  • 18. VISUAL BASIC?  One of the first successful interactive development environments for Windows programming, introduced by Microsoft in 1991.  Programmers can lay out the program’s windows graphically and write BASIC code to specify what happens when each button is clicked or other events occur.  Any part of the layout or code can be changed at any time.  Unlike in earlier Windows programming environments, the programmer need not write any general code to initialize windows, handle events, or interact with the operating system.
  • 19. The current version is called Visual Basic .NET or VB.NET and uses the .NET Framework for fully object-oriented programming. Similar products for other programming languages include Microsoft’s Visual C++ and Visual C# and Borland’s Delphi and Kylix (for Pascal), JBuilder (for Java), and C++ Builder.
  • 20.
  • 21. .NET Framework?  An application program interface (API) for Microsoft Windows, introduced in 2001 as a downloadable add-on to Windows 2000 and XP and included in subsequent versions of Windows.  The purpose of the .NET Framework is to reduce the amount of work programmers have to do, while at the same time increasing reliability and introducing Java-like portability.  The .NET Framework is fully object-oriented.  The .NET Framework manages the memory used by each program.  Like Java, the .NET Framework normally compiles programs into bytecode, a concise notation that is converted to machine language when the program is ready to run.
  • 22. Bytecode? Bytecode is the compiled code that compilers for Java and C# produce. It isn't true machine code but a simpler code made up of instructions that are one byte long.