SlideShare a Scribd company logo
Submitted by:
Nicole Danielle Mallari
Keith Alison Arellano
 Importance of computers
 What is a computer?
 Computer Programs
 Programming Languages
 Arithmetic Operations
 Comparison (logical) operations
 Storage & retrieval operations
 Speed & Accuracy
 Hardware
 System Unit
 CPU – control unit & arithmetic logic unit
 Main Memory
 Peripheral Devices
 Input
 Output
 Secondary Storage
 Floppy disk, hard drive, CD, DVD, Flash
Drive
 Secondary Storage Devices
 Used to copy data to & from secondary
storage
 Storage space measured in Bytes
 Kilobyte, Megabyte, Gigabyte, Terabyte
Supercomputers
Mainframes
Minicomputers
Microcomputers
 Operating System
 User Interface
 Command-Line Interface
 Graphical User Interface
 DOS – Disk Operating System
 Command-line
 Used to run QBasic
 Designed from the BASIC language
 Enhanced, menu-driven
 Online Help
 Structured language
 Installed on your H: drive
 Double click on QB.exe
 Use mouse and arrow keys to navigate
 Menu Bar
 File - Edit
 View - Search
 Run - Debug
 Options - Help
 Title Bar
 Reference Bar
 Immediate Window
Basic programming
Demonstration
 File
 New
 Open
 Save
 Save As
 Print
 Exit
 View
 SUBs
 Split
 Output Screen
 Run
 Start
 Restart
 Continue
 Use CLS to clear screen at beginning
 Type commands one line at a time
 Hit Enter to go to next line
 Scroll up & down as needed
 CLS
 INPUT
 PRINT
 Put text in “double quotes”
 Use semi-colon ; between quoted text & variable names
 Use $ for text variables
 User$, Instructor$, Title$
 Computer Ethics
 Hardware
 Backup data
 Store media properly
 Software
 Commercial Software
 Shareware
 Public-domain Software
 There are also special functions called
“commands” (also called “instructions”). A
“command” tells that the Qbasic interpreter to do
something.
The PRINT command tells the Qbasic interpreter to
print something to the screen. In this case, the
interpreter printed “Hello World ! “.
TIP: Instead of typing PRINT, you
can enter a question mark. For
example:
?”Hello World!”
With the PRINT command, you can also print numbers
to the screen. Delete the current program (unless you
already have) and write the following:
PRINT 512 (or ?512)
<press Enter>
Press F5 to run the program, the program outputs:
512
 An expression is something the interpreter
calculates (or evaluates). Such us:
1 + 1 (returns 2)
100 – 47 (returns 53)
3 * 34 (returns 102)
80 / 4 (returns 20)
(100 * 3) + (returns 356)
CLS
- An abbreviation that stands for the words Clear Screen .
In the above program, when you used CLS on line 60, all
the words that were printed to the screen were wiped
away.
PRINT
- Writes the screen. There are commands to other things
like printer, but that’s to be discussed later. Each new
Print command will start printing on a new line. To
insert a blank line, don’t specify a string to print. The
syntax for “PRINT” is PRINT “[whatever you want to be
here]”
END
- It stops the program at that line; that is, anything
that’s added after that won’t show. That’s why the
PRINT command on line 90 didn’t print anything. The
END command can be included in control structures
to end the program if a condition is met. This will be
discussed with control structures.
Given the state of computer speed today you
should not see the paragraph displayed by lines 20
through 50, it should be cleared by the CLS statement
on Line 60 before you have a chance to see it.
An operator is a code element that performs an
operation on one or more code elements that hold
values. Value elements include variables, constants,
literals, properties, returns from function and operator
procedures and expressions.
An expression is a series of value elements
combined with operators which yields a new value. The
operators act on the value elements by performing
calculations, comparisons or other operations.
Visual Basic provides the following types of operators:
 Arithmetic Operators perform familiar calculations on
numeric values, including shifting their bit patterns.
 Comparison Operators Compare two expressions and
return a boolean value representing the result of the
comparison.
 Concatenation operators join multiple strings into
single string.
 Logical and Bitwise Operators in Visual Basic combine
Boolean or numeric values and return a result of the
same data type as the values.
Basic programming

More Related Content

PPTX
Basic Computer Programming
PPT
Intro To Programming Concepts
PPTX
Computer programming
PPTX
Introduction to programming
PPT
Programming
PPTX
Programming Fundamentals lecture 2
PDF
Introduction to Computer Programming
PPTX
Basic Computer Programming
Intro To Programming Concepts
Computer programming
Introduction to programming
Programming
Programming Fundamentals lecture 2
Introduction to Computer Programming

What's hot (20)

PPT
Basic Programming Concept
PPT
Introduction to computer programming
PPTX
Introduction to programming
PPTX
Interfacing With High Level Programming Language
PDF
Introduction to programming by MUFIX Commnity
DOC
Notacd07
PPTX
BASIC Programming Language
PPTX
Programming Fundamentals lecture 1
PPT
Language translator
PPT
270 1 c_intro_up_to_functions
PDF
The Programming Process
PPT
Chapter 5( programming) answer
PPTX
Compiler vs Interpreter-Compiler design ppt.
PPTX
Chapter 5
PDF
Introduction to compiler development
PPTX
Programming Fundamentals and Programming Languages Concepts
PPTX
Introduction to Programming Concepts By Aamir Saleem Ansari
PPTX
Translators(compiler assembler interpretor).
PPTX
Programming Fundamental Slide No.1
PPTX
Interpreted and compiled language
Basic Programming Concept
Introduction to computer programming
Introduction to programming
Interfacing With High Level Programming Language
Introduction to programming by MUFIX Commnity
Notacd07
BASIC Programming Language
Programming Fundamentals lecture 1
Language translator
270 1 c_intro_up_to_functions
The Programming Process
Chapter 5( programming) answer
Compiler vs Interpreter-Compiler design ppt.
Chapter 5
Introduction to compiler development
Programming Fundamentals and Programming Languages Concepts
Introduction to Programming Concepts By Aamir Saleem Ansari
Translators(compiler assembler interpretor).
Programming Fundamental Slide No.1
Interpreted and compiled language
Ad

Viewers also liked (20)

PPT
Lect 1. introduction to programming languages
PDF
Object-Oriented Programming 2
PPTX
Introduction to basic programming
PPTX
Introduction to Programming Languages
PPT
Introduction to visual basic programming
PPTX
Computer Languages.
PPTX
Basic programming concepts
PPT
Programming languages
PPTX
Programming language
PPT
Qbasic introduction
PPTX
Basic programming
PPT
PPTX
Programming : QBASIC
PDF
Computer programing
PDF
Computer Programing
PPTX
Programing techniques
PPTX
System software lecture infs429
PPTX
PPTX
Presentation on Logical Operators
PPT
The Basics of programming
Lect 1. introduction to programming languages
Object-Oriented Programming 2
Introduction to basic programming
Introduction to Programming Languages
Introduction to visual basic programming
Computer Languages.
Basic programming concepts
Programming languages
Programming language
Qbasic introduction
Basic programming
Programming : QBASIC
Computer programing
Computer Programing
Programing techniques
System software lecture infs429
Presentation on Logical Operators
The Basics of programming
Ad

Similar to Basic programming (20)

PDF
ArduinoWorkshop2.pdf
PPTX
Qbasic tutorial
PPTX
Presentation on visual basic 6 (vb6)
PPT
Lecture01
PPT
C PLUS PLUS FOR BS ELECTRICAL 2ND SEMSTERLecture01.ppt
PDF
Compiler Construction for DLX Processor
PPTX
Introduction to Programming and QBasic Tutorial
PPTX
InduSoft Web Studio Driver Overview – SITIA and ABCIP
PPT
Computer concepts
PPTX
intro to assembly language.pptx
PDF
Activity 5
PPT
Hechsp 001 Chapter 2
PPTX
COM 211 PRESENTATION.pptx
PDF
Master Index Rebuilding in ASE 15.7
PPT
Visual basic 6.0
PPTX
ab-initio-training basics and architecture
PPTX
The Knowledge of QBasic
PPTX
UNIT-1.pptx python for engineering first year students
PPTX
Programming C ppt for learning foundations
ArduinoWorkshop2.pdf
Qbasic tutorial
Presentation on visual basic 6 (vb6)
Lecture01
C PLUS PLUS FOR BS ELECTRICAL 2ND SEMSTERLecture01.ppt
Compiler Construction for DLX Processor
Introduction to Programming and QBasic Tutorial
InduSoft Web Studio Driver Overview – SITIA and ABCIP
Computer concepts
intro to assembly language.pptx
Activity 5
Hechsp 001 Chapter 2
COM 211 PRESENTATION.pptx
Master Index Rebuilding in ASE 15.7
Visual basic 6.0
ab-initio-training basics and architecture
The Knowledge of QBasic
UNIT-1.pptx python for engineering first year students
Programming C ppt for learning foundations

Recently uploaded (20)

PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Lesson notes of climatology university.
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Classroom Observation Tools for Teachers
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Insiders guide to clinical Medicine.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Cell Types and Its function , kingdom of life
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Basic Mud Logging Guide for educational purpose
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Lesson notes of climatology university.
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Classroom Observation Tools for Teachers
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Insiders guide to clinical Medicine.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Cell Types and Its function , kingdom of life
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Renaissance Architecture: A Journey from Faith to Humanism
STATICS OF THE RIGID BODIES Hibbelers.pdf
Final Presentation General Medicine 03-08-2024.pptx
Basic Mud Logging Guide for educational purpose
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

Basic programming

  • 1. Submitted by: Nicole Danielle Mallari Keith Alison Arellano
  • 2.  Importance of computers  What is a computer?  Computer Programs  Programming Languages
  • 3.  Arithmetic Operations  Comparison (logical) operations  Storage & retrieval operations  Speed & Accuracy
  • 4.  Hardware  System Unit  CPU – control unit & arithmetic logic unit  Main Memory  Peripheral Devices  Input  Output
  • 5.  Secondary Storage  Floppy disk, hard drive, CD, DVD, Flash Drive  Secondary Storage Devices  Used to copy data to & from secondary storage  Storage space measured in Bytes  Kilobyte, Megabyte, Gigabyte, Terabyte
  • 7.  Operating System  User Interface  Command-Line Interface  Graphical User Interface  DOS – Disk Operating System  Command-line  Used to run QBasic
  • 8.  Designed from the BASIC language  Enhanced, menu-driven  Online Help  Structured language
  • 9.  Installed on your H: drive  Double click on QB.exe  Use mouse and arrow keys to navigate  Menu Bar  File - Edit  View - Search  Run - Debug  Options - Help
  • 10.  Title Bar  Reference Bar  Immediate Window
  • 13.  File  New  Open  Save  Save As  Print  Exit
  • 14.  View  SUBs  Split  Output Screen  Run  Start  Restart  Continue
  • 15.  Use CLS to clear screen at beginning  Type commands one line at a time  Hit Enter to go to next line  Scroll up & down as needed
  • 16.  CLS  INPUT  PRINT  Put text in “double quotes”  Use semi-colon ; between quoted text & variable names  Use $ for text variables  User$, Instructor$, Title$
  • 17.  Computer Ethics  Hardware  Backup data  Store media properly  Software  Commercial Software  Shareware  Public-domain Software
  • 18.  There are also special functions called “commands” (also called “instructions”). A “command” tells that the Qbasic interpreter to do something. The PRINT command tells the Qbasic interpreter to print something to the screen. In this case, the interpreter printed “Hello World ! “. TIP: Instead of typing PRINT, you can enter a question mark. For example: ?”Hello World!”
  • 19. With the PRINT command, you can also print numbers to the screen. Delete the current program (unless you already have) and write the following: PRINT 512 (or ?512) <press Enter> Press F5 to run the program, the program outputs: 512
  • 20.  An expression is something the interpreter calculates (or evaluates). Such us: 1 + 1 (returns 2) 100 – 47 (returns 53) 3 * 34 (returns 102) 80 / 4 (returns 20) (100 * 3) + (returns 356)
  • 21. CLS - An abbreviation that stands for the words Clear Screen . In the above program, when you used CLS on line 60, all the words that were printed to the screen were wiped away. PRINT - Writes the screen. There are commands to other things like printer, but that’s to be discussed later. Each new Print command will start printing on a new line. To insert a blank line, don’t specify a string to print. The syntax for “PRINT” is PRINT “[whatever you want to be here]”
  • 22. END - It stops the program at that line; that is, anything that’s added after that won’t show. That’s why the PRINT command on line 90 didn’t print anything. The END command can be included in control structures to end the program if a condition is met. This will be discussed with control structures. Given the state of computer speed today you should not see the paragraph displayed by lines 20 through 50, it should be cleared by the CLS statement on Line 60 before you have a chance to see it.
  • 23. An operator is a code element that performs an operation on one or more code elements that hold values. Value elements include variables, constants, literals, properties, returns from function and operator procedures and expressions. An expression is a series of value elements combined with operators which yields a new value. The operators act on the value elements by performing calculations, comparisons or other operations.
  • 24. Visual Basic provides the following types of operators:  Arithmetic Operators perform familiar calculations on numeric values, including shifting their bit patterns.  Comparison Operators Compare two expressions and return a boolean value representing the result of the comparison.  Concatenation operators join multiple strings into single string.  Logical and Bitwise Operators in Visual Basic combine Boolean or numeric values and return a result of the same data type as the values.