SlideShare a Scribd company logo
1 of 16
INTRODUCTION
TO BASIC
COMPUTER
PROGRAMMING
Prepared by:
Vic Allen Leonel De Castro
& Carlito Redoble
Program is a set of step-by-step instructions that tells or
directs the computer what to do. It sequences the tasks a
user wants to be done and produces the results or output
needed.
The set rules or instructions that tells the computer what
to perform is done through programming language.There
are various types of programming language you can choose
from.
A programmer is the person who designs a program. It
converts problem solutions into instructions for the
computer.The programmer designs the program, decides
which of the programs or set of instructions to use and tests
the program to see if it is working as designed.
Introduction to programming
Program life cycle
 The steps to follow in writing or creating
a program includes the following:
1. Identify the problem – this is the first
step. As it gives the desired output
requirements, you are to analyze the need to be able to come up
with a suitable programming solution.
1. Planning the solution
 Two ways (these two are used only to plan the solution):
 Draw flowchart – graphical representation of step-by-step
instruction to be done in a program.
 Write a pseudo code – list down the set of instructions to be used in
the program
3. Coding the program – code the program with the use of a chosen
programming language (in this presentation, we’ll use visual basic
as our programming language.
3. Testing the program
 Desk checking – mentally
traces/checs the logic of the
program to make sure that it is error free.
 Translation – the programming language uses a
translator to ensure that the programmer does not
violate any language rules by the chosen programming
language.
 Debugging – detecting , locating and correcting bugs
(error or mistake)
5. Documentation – contains a brief narrative procces
undergone by the program, from the identification of the
problem, planning the solution through flowcharting and
psuedo code, coding of the program up to the testing
result.
Levels of programming
language
1. Machine Language or First Generation Programming
Language – lowest level of programming.
2. Assemble Language or Second Generation
Programming Language – considered as low level
language uses Mnemonic codes ( abbreviations that
easy to remember).
3. High Level Laguage orThird Generation Programming
Language(3GL) – language is written in English like
manner.
4. Very High Level Language or Fourth Generation
Language (4GL)
5. Natural Language – fifth generation languages
resemblance to English language.
Procedural and non-procedural
languages
PROCEDURAL LANGUAGE
 Programming language which are considered procedural
uses a series of instructions or statements which are
sequential from the beggining to the end.
Examples of procedural language are :
 BASIC ( Beginners’s All-Purpose Symbolic Instruction
Code)
 COBOL ( Common Business Oriented Language)
 PASCAL
 FORTRAN ( FormulaTranslator )
 C
 PL1 ( Programming Language 1 )
Non-Procedural Languages
 These programming languages ate considered as
object-oriented programming languages.They
are event-drivenwhich means that a
programmer selects an event that needs to occur
before the instruction or statement is exsicuted.
Examples of events are click, double click, drag
and drop , mouse over and other event .
Examples of non-procedural languages are :
VISUAL BASIC
C++
JAVA
DELPHI
Beginning Commands
There are also special functions called "commands" (also
called "instructions"). A "command" tells the QBasic
interpreter to do something. Ex: PRINT, CLS, and INPUT. I will
also introduce you to variables.
 PRINT
It simply PRINTs the words you specify to the screen.The syntax
for PRINT is PRINT “ ” or ?“ ” . Put what you want to show up on
the screen inside the quotes. Ex. PRINT "Hello World!“.Then the
screen will print Hello World!
 CLS
CLS stands for Clear Screen. It does what it stands for, it clears the
entire screen.The syntax for this is, of course, CLS.
QBasic Tutorial
 VARIABLES
Variables are used to store information in your computers memory.
Think of them as storage boxes in your computer.They are almost
ALWAYS used in a program.To declare a variable just do this: A(ex)
= 10. A is now storing the word "hello". So when you PRINT A then
10 will be printed in the screen as an output.You can use any
word,number, or letter as your variable.
 INPUT
INPUT is also used to restore value in a variable. Ex. INPUT x, a
question mark will be printed on the screen asking for a value.
INPUT is also used to ask a printed question, ex. INPUT “number”;x
The screen will show, number?__ ,asking value for the x.You can
also use comma instead of a semicolon.
Note: If you put a semicolon then a question mark appears after the
prompt string. If you put a comma, then no question mark appears.
Expressions
An expression is something the interpreter
calculates (or evaluates). Such as:
1 + 1 (addition)
100 - 47 (subtraction)
3 * 34 (multiplication)
80 / 4 (division)
Note:The computer will always follow the PMDAS
pattern in calculating/solving expressions.
IF, THEN, ELSE
IF ANDTHEN
 The IF andTHEN commands are used to
compare an expression and then perform
some task based on that expression
Example:
x = 5
IF x = 5 then PRINT “ x is equal to 5 ”
Since x is equal to 5, the program will print:
x is equal to 5
ELSE
 Using the ELSE command, you can have the
program perform a diffrent action if the
statement is false.
Example:
x = 3
IF x = 5THEN PRINT “Yes” ELSE PRINT “No”
Since x is not equal to 5, the output is:
No
END IF
END IF allows you to have multiple
commands after the if . . .THEN
statement, but they must start on the line
after the IF statement . IF should appear
right after the list commands.
Expression Signs
You can also enter the following statements, instead of
the equals signs:
X < 5 (x is less than 5)
X > 5(x is greater than 5)
Run the Following :
X = 16
IF (X>5)THEN PRINT “ x is greater than 5 ” ELSE PRINT
“x is lesser than 5”
Output :
X is greater than 5
You can also combines the signs like this:
X <= 5 (is less than or equal to 5)
X >= (x is greater than or equal to 5)
X <> 5 ( x does not equal 5)
YOU CAN COMBINE ALL
THIS KNOWLEDGE IN THIS
PRESENTATION USING
Qbasic.. 
Presented by:
Vic Allen
Leonel
De Castro
Carlito
Redoble

More Related Content

What's hot

Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languageseducationfront
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingNeeru Mittal
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNSU-Biliran Campus
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
Programming languages
Programming languagesProgramming languages
Programming languagesAsmasum
 
Computer languages
Computer languagesComputer languages
Computer languagesAqdasNoor
 
Computer Programming Overview
Computer Programming OverviewComputer Programming Overview
Computer Programming Overviewagorolabs
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Professor Lili Saghafi
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming LanguagesJuhi Bhoyar
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languageskitturashmikittu
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language adnan usmani
 

What's hot (20)

Programming
ProgrammingProgramming
Programming
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
Computer Programming Overview
Computer Programming OverviewComputer Programming Overview
Computer Programming Overview
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languages
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
 

Viewers also liked

Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNoel Malle
 
BASIC Programming Language
BASIC Programming LanguageBASIC Programming Language
BASIC Programming LanguageJeff Valerio
 
Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming ConceptCma Mohd
 
Good And Bad Powerpoint
Good And Bad PowerpointGood And Bad Powerpoint
Good And Bad Powerpointmlocock
 
Introduction to basic programming
Introduction to basic programmingIntroduction to basic programming
Introduction to basic programmingJordan Delacruz
 
A Brief History of Programming
A Brief History of ProgrammingA Brief History of Programming
A Brief History of Programmingjxyz
 
Microsoft Powerpoint
Microsoft PowerpointMicrosoft Powerpoint
Microsoft PowerpointMi L
 
Evolution of Programming Languages
Evolution of Programming LanguagesEvolution of Programming Languages
Evolution of Programming LanguagesSayanee Basu
 
History of Operating system
History of Operating systemHistory of Operating system
History of Operating systemtarun thakkar
 
Presentation on generation of languages
Presentation on generation of languagesPresentation on generation of languages
Presentation on generation of languagesRicha Pant
 
Programming languages
Programming languagesProgramming languages
Programming languagesAkash Varaiya
 
Programming language
Programming languageProgramming language
Programming languageMakku-Sama
 

Viewers also liked (20)

Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
BASIC Programming Language
BASIC Programming LanguageBASIC Programming Language
BASIC Programming Language
 
Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming Concept
 
Computer Programming - Lecture 1
Computer Programming - Lecture 1Computer Programming - Lecture 1
Computer Programming - Lecture 1
 
Good And Bad Powerpoint
Good And Bad PowerpointGood And Bad Powerpoint
Good And Bad Powerpoint
 
Introduction to basic programming
Introduction to basic programmingIntroduction to basic programming
Introduction to basic programming
 
A Brief History of Programming
A Brief History of ProgrammingA Brief History of Programming
A Brief History of Programming
 
Computer Programming - Lecture 2
Computer Programming - Lecture 2Computer Programming - Lecture 2
Computer Programming - Lecture 2
 
Evolution of Computer Languages
Evolution of Computer LanguagesEvolution of Computer Languages
Evolution of Computer Languages
 
History of programming
History of programmingHistory of programming
History of programming
 
Microsoft Powerpoint
Microsoft PowerpointMicrosoft Powerpoint
Microsoft Powerpoint
 
Evolution of Programming Languages
Evolution of Programming LanguagesEvolution of Programming Languages
Evolution of Programming Languages
 
java swing tutorial for beginners(java programming tutorials)
java swing tutorial for beginners(java programming tutorials)java swing tutorial for beginners(java programming tutorials)
java swing tutorial for beginners(java programming tutorials)
 
History of Operating system
History of Operating systemHistory of Operating system
History of Operating system
 
Introduction to Coding
Introduction to CodingIntroduction to Coding
Introduction to Coding
 
Presentation on generation of languages
Presentation on generation of languagesPresentation on generation of languages
Presentation on generation of languages
 
Basic programming
Basic programmingBasic programming
Basic programming
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Mga relihiyon sa asya
Mga relihiyon sa asya Mga relihiyon sa asya
Mga relihiyon sa asya
 
Programming language
Programming languageProgramming language
Programming language
 

Similar to Basic Computer Programming

Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1ILearn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1Ilivecoding.tv
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorialnhomz
 
introduction to programming
introduction to programmingintroduction to programming
introduction to programmingGaea Bonita
 
Basic computer-programming-2
Basic computer-programming-2Basic computer-programming-2
Basic computer-programming-2lemonmichelangelo
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsOMWOMA JACKSON
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechzShahbaz Ahmad
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfMMRF2
 
C programming .pptx
C programming .pptxC programming .pptx
C programming .pptxSuhaibKhan62
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Sehrish Rafiq
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxNeil Mutia
 

Similar to Basic Computer Programming (20)

Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1ILearn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
 
programming.ppt
programming.pptprogramming.ppt
programming.ppt
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
introduction to programming
introduction to programmingintroduction to programming
introduction to programming
 
Computer
ComputerComputer
Computer
 
Computer programming k 12
Computer programming k 12Computer programming k 12
Computer programming k 12
 
Qbasic introduction
Qbasic introductionQbasic introduction
Qbasic introduction
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Qbasic tutorial
Qbasic tutorialQbasic tutorial
Qbasic tutorial
 
Basic computer-programming-2
Basic computer-programming-2Basic computer-programming-2
Basic computer-programming-2
 
Algorithms - Introduction to computer programming
Algorithms - Introduction to computer programmingAlgorithms - Introduction to computer programming
Algorithms - Introduction to computer programming
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentals
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
C programming .pptx
C programming .pptxC programming .pptx
C programming .pptx
 
Programming : QBASIC
Programming : QBASICProgramming : QBASIC
Programming : QBASIC
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptx
 

Recently uploaded

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 

Recently uploaded (20)

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 

Basic Computer Programming

  • 1. INTRODUCTION TO BASIC COMPUTER PROGRAMMING Prepared by: Vic Allen Leonel De Castro & Carlito Redoble
  • 2. Program is a set of step-by-step instructions that tells or directs the computer what to do. It sequences the tasks a user wants to be done and produces the results or output needed. The set rules or instructions that tells the computer what to perform is done through programming language.There are various types of programming language you can choose from. A programmer is the person who designs a program. It converts problem solutions into instructions for the computer.The programmer designs the program, decides which of the programs or set of instructions to use and tests the program to see if it is working as designed. Introduction to programming
  • 3. Program life cycle  The steps to follow in writing or creating a program includes the following: 1. Identify the problem – this is the first step. As it gives the desired output requirements, you are to analyze the need to be able to come up with a suitable programming solution. 1. Planning the solution  Two ways (these two are used only to plan the solution):  Draw flowchart – graphical representation of step-by-step instruction to be done in a program.  Write a pseudo code – list down the set of instructions to be used in the program 3. Coding the program – code the program with the use of a chosen programming language (in this presentation, we’ll use visual basic as our programming language.
  • 4. 3. Testing the program  Desk checking – mentally traces/checs the logic of the program to make sure that it is error free.  Translation – the programming language uses a translator to ensure that the programmer does not violate any language rules by the chosen programming language.  Debugging – detecting , locating and correcting bugs (error or mistake) 5. Documentation – contains a brief narrative procces undergone by the program, from the identification of the problem, planning the solution through flowcharting and psuedo code, coding of the program up to the testing result.
  • 5. Levels of programming language 1. Machine Language or First Generation Programming Language – lowest level of programming. 2. Assemble Language or Second Generation Programming Language – considered as low level language uses Mnemonic codes ( abbreviations that easy to remember). 3. High Level Laguage orThird Generation Programming Language(3GL) – language is written in English like manner. 4. Very High Level Language or Fourth Generation Language (4GL) 5. Natural Language – fifth generation languages resemblance to English language.
  • 6. Procedural and non-procedural languages PROCEDURAL LANGUAGE  Programming language which are considered procedural uses a series of instructions or statements which are sequential from the beggining to the end. Examples of procedural language are :  BASIC ( Beginners’s All-Purpose Symbolic Instruction Code)  COBOL ( Common Business Oriented Language)  PASCAL  FORTRAN ( FormulaTranslator )  C  PL1 ( Programming Language 1 )
  • 7. Non-Procedural Languages  These programming languages ate considered as object-oriented programming languages.They are event-drivenwhich means that a programmer selects an event that needs to occur before the instruction or statement is exsicuted. Examples of events are click, double click, drag and drop , mouse over and other event . Examples of non-procedural languages are : VISUAL BASIC C++ JAVA DELPHI
  • 8. Beginning Commands There are also special functions called "commands" (also called "instructions"). A "command" tells the QBasic interpreter to do something. Ex: PRINT, CLS, and INPUT. I will also introduce you to variables.  PRINT It simply PRINTs the words you specify to the screen.The syntax for PRINT is PRINT “ ” or ?“ ” . Put what you want to show up on the screen inside the quotes. Ex. PRINT "Hello World!“.Then the screen will print Hello World!  CLS CLS stands for Clear Screen. It does what it stands for, it clears the entire screen.The syntax for this is, of course, CLS. QBasic Tutorial
  • 9.  VARIABLES Variables are used to store information in your computers memory. Think of them as storage boxes in your computer.They are almost ALWAYS used in a program.To declare a variable just do this: A(ex) = 10. A is now storing the word "hello". So when you PRINT A then 10 will be printed in the screen as an output.You can use any word,number, or letter as your variable.  INPUT INPUT is also used to restore value in a variable. Ex. INPUT x, a question mark will be printed on the screen asking for a value. INPUT is also used to ask a printed question, ex. INPUT “number”;x The screen will show, number?__ ,asking value for the x.You can also use comma instead of a semicolon. Note: If you put a semicolon then a question mark appears after the prompt string. If you put a comma, then no question mark appears.
  • 10. Expressions An expression is something the interpreter calculates (or evaluates). Such as: 1 + 1 (addition) 100 - 47 (subtraction) 3 * 34 (multiplication) 80 / 4 (division) Note:The computer will always follow the PMDAS pattern in calculating/solving expressions.
  • 11. IF, THEN, ELSE IF ANDTHEN  The IF andTHEN commands are used to compare an expression and then perform some task based on that expression Example: x = 5 IF x = 5 then PRINT “ x is equal to 5 ” Since x is equal to 5, the program will print: x is equal to 5
  • 12. ELSE  Using the ELSE command, you can have the program perform a diffrent action if the statement is false. Example: x = 3 IF x = 5THEN PRINT “Yes” ELSE PRINT “No” Since x is not equal to 5, the output is: No
  • 13. END IF END IF allows you to have multiple commands after the if . . .THEN statement, but they must start on the line after the IF statement . IF should appear right after the list commands.
  • 14. Expression Signs You can also enter the following statements, instead of the equals signs: X < 5 (x is less than 5) X > 5(x is greater than 5) Run the Following : X = 16 IF (X>5)THEN PRINT “ x is greater than 5 ” ELSE PRINT “x is lesser than 5” Output : X is greater than 5
  • 15. You can also combines the signs like this: X <= 5 (is less than or equal to 5) X >= (x is greater than or equal to 5) X <> 5 ( x does not equal 5) YOU CAN COMBINE ALL THIS KNOWLEDGE IN THIS PRESENTATION USING Qbasic.. 
  • 16. Presented by: Vic Allen Leonel De Castro Carlito Redoble