SlideShare a Scribd company logo
1 of 19
Introduction to
Computer Programming
Lesson 1
NEIL A. MUTIA, MIT
What is Computer Programming?
 Programming is giving a set of instructions to a computer to
execute a specific task.
 Programming is the process of taking an algorithm and
encoding it into a notation, a programming language, so
that it can be executed by a computer.
 Programming is the mental process of thinking up
instructions to give to a machine (like a computer).
What is Computer Programming?
 Analogy of Computer Programming
If you’ve ever cooked using a recipe before, you can think
of yourself as the computer and the recipe’s author as a
programmer. The recipe author provides you with a set of
instructions which you read and then follow. The more
complex the instructions, the more complex the result!
What is Computer Programming?
 Procedures when cooking the Adobo
Computer Programming Terminologies
 Computer Programmer -The person who created a computer program.
 Computer Program - The set of instructions given to the computer to be
executed. Also known as Algorithm.
 Codes - Each line of instruction inside the computer program
 Programming Language - is a vocabulary and set of grammatical rules for
instructing a computer or computing device to perform specific tasks.
 Example: Java, C++, C, Ruby, Python, etc.
 Compiler - a special program that processes statements written in a
particular programming language and turns them into machine language or
"code" that a computer's processor uses.
 Bugs – Computer Program Errors.
 Text Editor – Software application used by programmers to write computer
programs
Computer Programming Terminologies
 Debugging – finding the errors in the program
 Compiling – telling the computer to convert the codes to machine
language.
 Run or Execute the program – telling the computer to perform what is the
intended task of the program
 Syntax - refers to the rules that define the structure of a language.
Computer Programming Products
 Calculator
 Smartphones
 Smart TV
 Point of Sale System
 Websites
 Phone Applications
 Automatic/High Tech Cars
 Computer Programs
 Computer boxes in vehicles/motorcycles
 Satellites
 And many more..
Computer Programming Sample Salary
The Java Virtual Machine
 Machine language consists of very simple instructions that can be executed
directly by the CPU of a computer.
 Almost all programs, though, are written in high-level programming
languages such as Java, Pascal, or C++.
 A program written in a high-level language cannot be run directly on any
computer.
 It has to be translated into machine language. This translation can be done
by a program called a compiler.
 Once the translation is done, the machine-language program can be run
any number of times, but of course it can only be run on one type of
computer.
 If the program is to run on another type of computer it has to be re-
translated, using a different compiler, into the appropriate machine
language.
The Java Virtual Machine
 There is an alternative to compiling a high-level language program.
Instead of using a compiler, which translates the program all at once,
you can use an interpreter, which translates it instruction-by-
instruction, as necessary.
 The designers of Java chose to use a combination of compilation and
interpretation.
 Programs written in Java are compiled into machine language, but it is
a machine language for a computer that doesn’t really exist. This so-
called “virtual” computer is known as the Java virtual machine.
 The machine language for the Java virtual machine is called Java
bytecode.
The Java Virtual Machine
Fundamental Building Blocks of Programs
 There are two basic aspects of programming: data and
instructions.
 To work with data, you need to understand variables and
types.
 A variable is just a memory location (or several locations treated as
a unit) that has been given a name so that it can be easily referred to
and used in a program.
 a variable has a type that indicates what sort of data it can hold.
Examples of variable types
Integers – hold whole numbers (positive and negative numbers) ( -2, -1, 0,
1, 2)
Double - holds a real or decimal based number. (-2, 5, 2.5, 0.33)
Character – holds only one character ( A, c, Z, -, ! )
String – holds multiple characters. ( words or phrase or sentences )
Fundamental Building Blocks of Programs
 To work with instructions, you need to understand control
structures and subroutines
 Control structures are special instructions that can
change the flow of control.
 There are two basic types of control structure:
 Loops, which allow a sequence of instructions to be repeated over
and over, and
 Branches (Conditions), which allow the computer to decide
between two or more different courses of action by testing
conditions that occur as the program is running.
Program Example
Beginners for Programming Must Learn
the following:
 Flowcharts - A flowchart is a diagrammatic representation of an algorithm.
A flowchart can be helpful for both writing programs and explaining
the program to others.
Beginners for Programming Must Learn
the following:
 Pseudocode - In computer field, pseudocode is a plain language description of
the steps in an algorithm or another system
 Pseudocode example:
 Start
 Input numbers for variable a & b
 Get the sum of a & b
 Print the sum
 End
Beginners for Programming Must Learn
the following:
 Entry Level Programs – a simple programs that execute simple process.
Things needed to perform programming
 The Java Virtual Environment – enables the java program to run/execute un a
computer. JDK installer is needed and must be installed in a computer
 Text Editor – enables the programmer to types the codes.
Assignment 1
 Create an essay about what you understand from this discussion. You
can discuss each of the topics presented as long as it is from your
own words. Discussion must be at least 300 words. Send directly your
essay to me using Facebook Messenger. Please observe correct
spellings and grammars. Thank you.

More Related Content

What's hot (20)

Quiz ms paint
Quiz ms paintQuiz ms paint
Quiz ms paint
 
Application software module
Application software moduleApplication software module
Application software module
 
Computer basic for kids
Computer basic for kidsComputer basic for kids
Computer basic for kids
 
Input output and storage devices activity
Input output and storage devices activityInput output and storage devices activity
Input output and storage devices activity
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
 
Intro To Scratch
Intro To ScratchIntro To Scratch
Intro To Scratch
 
Computer keyboard
Computer keyboardComputer keyboard
Computer keyboard
 
Programming Terminology
Programming TerminologyProgramming Terminology
Programming Terminology
 
Types of software
Types of softwareTypes of software
Types of software
 
Scratch
ScratchScratch
Scratch
 
Presentation on different kinds of software
Presentation on different kinds of softwarePresentation on different kinds of software
Presentation on different kinds of software
 
Computer Components
Computer ComponentsComputer Components
Computer Components
 
Basic of computer
Basic of computerBasic of computer
Basic of computer
 
Input devices
Input devicesInput devices
Input devices
 
How Does a Computer Work?
How Does a Computer Work?How Does a Computer Work?
How Does a Computer Work?
 
System's Specification
System's SpecificationSystem's Specification
System's Specification
 
Computer Programming - Lecture 1
Computer Programming - Lecture 1Computer Programming - Lecture 1
Computer Programming - Lecture 1
 
Computer Languages.
Computer Languages.Computer Languages.
Computer Languages.
 
Using the Mouse
Using the MouseUsing the Mouse
Using the Mouse
 

Similar to Lesson 1 - Introduction to Computer Programming.pptx

Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Sehrish Rafiq
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programmingsonalikharade3
 
Computer program, computer languages, computer software
Computer program, computer languages, computer softwareComputer program, computer languages, computer software
Computer program, computer languages, computer softwareSweta Kumari Barnwal
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution pptKeerty Smile
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptxgaafergoda
 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals ArghodeepPaul
 
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.docAmanGunner
 

Similar to Lesson 1 - Introduction to Computer Programming.pptx (20)

Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
 
main
mainmain
main
 
CISY 105 Chapter 1
CISY 105 Chapter 1CISY 105 Chapter 1
CISY 105 Chapter 1
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
 
Computer program, computer languages, computer software
Computer program, computer languages, computer softwareComputer program, computer languages, computer software
Computer program, computer languages, computer software
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals
 
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
 
UNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptxUNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptx
 
Unit 1
Unit 1Unit 1
Unit 1
 

Recently uploaded

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
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...Miguel Araújo
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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...apidays
 
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?Igalia
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor 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...
 
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?
 

Lesson 1 - Introduction to Computer Programming.pptx

  • 2. What is Computer Programming?  Programming is giving a set of instructions to a computer to execute a specific task.  Programming is the process of taking an algorithm and encoding it into a notation, a programming language, so that it can be executed by a computer.  Programming is the mental process of thinking up instructions to give to a machine (like a computer).
  • 3. What is Computer Programming?  Analogy of Computer Programming If you’ve ever cooked using a recipe before, you can think of yourself as the computer and the recipe’s author as a programmer. The recipe author provides you with a set of instructions which you read and then follow. The more complex the instructions, the more complex the result!
  • 4. What is Computer Programming?  Procedures when cooking the Adobo
  • 5. Computer Programming Terminologies  Computer Programmer -The person who created a computer program.  Computer Program - The set of instructions given to the computer to be executed. Also known as Algorithm.  Codes - Each line of instruction inside the computer program  Programming Language - is a vocabulary and set of grammatical rules for instructing a computer or computing device to perform specific tasks.  Example: Java, C++, C, Ruby, Python, etc.  Compiler - a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses.  Bugs – Computer Program Errors.  Text Editor – Software application used by programmers to write computer programs
  • 6. Computer Programming Terminologies  Debugging – finding the errors in the program  Compiling – telling the computer to convert the codes to machine language.  Run or Execute the program – telling the computer to perform what is the intended task of the program  Syntax - refers to the rules that define the structure of a language.
  • 7. Computer Programming Products  Calculator  Smartphones  Smart TV  Point of Sale System  Websites  Phone Applications  Automatic/High Tech Cars  Computer Programs  Computer boxes in vehicles/motorcycles  Satellites  And many more..
  • 9. The Java Virtual Machine  Machine language consists of very simple instructions that can be executed directly by the CPU of a computer.  Almost all programs, though, are written in high-level programming languages such as Java, Pascal, or C++.  A program written in a high-level language cannot be run directly on any computer.  It has to be translated into machine language. This translation can be done by a program called a compiler.  Once the translation is done, the machine-language program can be run any number of times, but of course it can only be run on one type of computer.  If the program is to run on another type of computer it has to be re- translated, using a different compiler, into the appropriate machine language.
  • 10. The Java Virtual Machine  There is an alternative to compiling a high-level language program. Instead of using a compiler, which translates the program all at once, you can use an interpreter, which translates it instruction-by- instruction, as necessary.  The designers of Java chose to use a combination of compilation and interpretation.  Programs written in Java are compiled into machine language, but it is a machine language for a computer that doesn’t really exist. This so- called “virtual” computer is known as the Java virtual machine.  The machine language for the Java virtual machine is called Java bytecode.
  • 11. The Java Virtual Machine
  • 12. Fundamental Building Blocks of Programs  There are two basic aspects of programming: data and instructions.  To work with data, you need to understand variables and types.  A variable is just a memory location (or several locations treated as a unit) that has been given a name so that it can be easily referred to and used in a program.  a variable has a type that indicates what sort of data it can hold. Examples of variable types Integers – hold whole numbers (positive and negative numbers) ( -2, -1, 0, 1, 2) Double - holds a real or decimal based number. (-2, 5, 2.5, 0.33) Character – holds only one character ( A, c, Z, -, ! ) String – holds multiple characters. ( words or phrase or sentences )
  • 13. Fundamental Building Blocks of Programs  To work with instructions, you need to understand control structures and subroutines  Control structures are special instructions that can change the flow of control.  There are two basic types of control structure:  Loops, which allow a sequence of instructions to be repeated over and over, and  Branches (Conditions), which allow the computer to decide between two or more different courses of action by testing conditions that occur as the program is running.
  • 15. Beginners for Programming Must Learn the following:  Flowcharts - A flowchart is a diagrammatic representation of an algorithm. A flowchart can be helpful for both writing programs and explaining the program to others.
  • 16. Beginners for Programming Must Learn the following:  Pseudocode - In computer field, pseudocode is a plain language description of the steps in an algorithm or another system  Pseudocode example:  Start  Input numbers for variable a & b  Get the sum of a & b  Print the sum  End
  • 17. Beginners for Programming Must Learn the following:  Entry Level Programs – a simple programs that execute simple process.
  • 18. Things needed to perform programming  The Java Virtual Environment – enables the java program to run/execute un a computer. JDK installer is needed and must be installed in a computer  Text Editor – enables the programmer to types the codes.
  • 19. Assignment 1  Create an essay about what you understand from this discussion. You can discuss each of the topics presented as long as it is from your own words. Discussion must be at least 300 words. Send directly your essay to me using Facebook Messenger. Please observe correct spellings and grammars. Thank you.