SlideShare uma empresa Scribd logo
1 de 25
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
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

Mais conteúdo relacionado

Mais procurados

Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
NSU-Biliran Campus
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
smkengkilili2011
 
Introduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariIntroduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem Ansari
Tech
 

Mais procurados (20)

Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming Concept
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Interfacing With High Level Programming Language
Interfacing With High Level Programming Language Interfacing With High Level Programming Language
Interfacing With High Level Programming Language
 
Introduction to programming by MUFIX Commnity
Introduction to programming by MUFIX CommnityIntroduction to programming by MUFIX Commnity
Introduction to programming by MUFIX Commnity
 
Notacd07
Notacd07Notacd07
Notacd07
 
BASIC Programming Language
BASIC Programming LanguageBASIC Programming Language
BASIC Programming Language
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
Language translator
Language translatorLanguage translator
Language translator
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions
 
The Programming Process
The Programming ProcessThe Programming Process
The Programming Process
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Introduction to compiler development
Introduction to compiler developmentIntroduction to compiler development
Introduction to compiler development
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Concepts
 
Introduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariIntroduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem Ansari
 
Translators(compiler assembler interpretor).
Translators(compiler assembler interpretor).Translators(compiler assembler interpretor).
Translators(compiler assembler interpretor).
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Interpreted and compiled language
Interpreted and compiled languageInterpreted and compiled language
Interpreted and compiled language
 

Destaque

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
Computer programing
Computer programingComputer programing
Computer programing
JT Taylor
 
Presentation on Logical Operators
Presentation on Logical OperatorsPresentation on Logical Operators
Presentation on Logical Operators
Sanjeev Budha
 

Destaque (20)

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Object-Oriented Programming 2
Object-Oriented Programming 2Object-Oriented Programming 2
Object-Oriented Programming 2
 
Introduction to basic programming
Introduction to basic programmingIntroduction to basic programming
Introduction to basic programming
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Computer Languages.
Computer Languages.Computer Languages.
Computer Languages.
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Programming language
Programming languageProgramming language
Programming language
 
Qbasic introduction
Qbasic introductionQbasic introduction
Qbasic introduction
 
Basic programming
Basic programmingBasic programming
Basic programming
 
Operators
OperatorsOperators
Operators
 
Programming : QBASIC
Programming : QBASICProgramming : QBASIC
Programming : QBASIC
 
Computer programing
Computer programingComputer programing
Computer programing
 
Computer Programing
Computer ProgramingComputer Programing
Computer Programing
 
Programing techniques
Programing techniquesPrograming techniques
Programing techniques
 
System software lecture infs429
System software lecture infs429System software lecture infs429
System software lecture infs429
 
Qbasic
QbasicQbasic
Qbasic
 
Presentation on Logical Operators
Presentation on Logical OperatorsPresentation on Logical Operators
Presentation on Logical Operators
 
The Basics of programming
The Basics of programmingThe Basics of programming
The Basics of programming
 

Semelhante a Basic programming

Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
pbarasia
 
Computer concepts
Computer conceptsComputer concepts
Computer concepts
Imran Waris
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
saipriyacoool
 

Semelhante a Basic programming (20)

ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
Qbasic tutorial
Qbasic tutorialQbasic tutorial
Qbasic tutorial
 
L1
L1L1
L1
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Lecture01
Lecture01Lecture01
Lecture01
 
Compiler Construction for DLX Processor
Compiler Construction for DLX Processor Compiler Construction for DLX Processor
Compiler Construction for DLX Processor
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
 
InduSoft Web Studio Driver Overview – SITIA and ABCIP
InduSoft Web Studio Driver Overview – SITIA and ABCIPInduSoft Web Studio Driver Overview – SITIA and ABCIP
InduSoft Web Studio Driver Overview – SITIA and ABCIP
 
Computer concepts
Computer conceptsComputer concepts
Computer concepts
 
intro to assembly language.pptx
intro to assembly language.pptxintro to assembly language.pptx
intro to assembly language.pptx
 
Activity 5
Activity 5Activity 5
Activity 5
 
Hechsp 001 Chapter 2
Hechsp 001 Chapter 2Hechsp 001 Chapter 2
Hechsp 001 Chapter 2
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Master Index Rebuilding in ASE 15.7
Master Index Rebuilding in ASE 15.7Master Index Rebuilding in ASE 15.7
Master Index Rebuilding in ASE 15.7
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
 
The Knowledge of QBasic
The Knowledge of QBasicThe Knowledge of QBasic
The Knowledge of QBasic
 
Computer programming k 12
Computer programming k 12Computer programming k 12
Computer programming k 12
 
Foundations of Programming Part I
Foundations of Programming Part IFoundations of Programming Part I
Foundations of Programming Part I
 
Assembly Language Programming
Assembly Language ProgrammingAssembly Language Programming
Assembly Language Programming
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

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
  • 11.
  • 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.