SlideShare a Scribd company logo
What is Computer
Programming?
Computer programming (often shortened to programming) is a
process that leads from an original formulation of a computing
problem to executable computer programs. Programming involves
activities such as analysis, developing understanding, generating
algorithms, verification of requirements of algorithms including
their correctness and resources consumption, and implementation
(commonly referred to as coding) of algorithms in a
target programming language.
Purpose
The purpose of programming is to find a sequence of
instructions that will automate performing a specific task or
solving a given problem. The process of programming thus
often requires expertise in many different subjects, including
knowledge of the application domain, specialized
algorithms and formal logic.
Programmers
Computer programmers are those who write computer software.
Their jobs usually involve:
• Coding
• Debugging
• Documentation
• Integration
• Maintenance
• Requirements analysis
• Software architecture
• Software testing
• Specification
Programming Languages
Different programming languages support different styles of programming
(called programming paradigms). The choice of language used is subject to
many considerations, such as company policy, suitability to task, availability of
third-party packages, or individual preference. Ideally, the programming
language best suited for the task at hand will be selected. Trade-offs from this
ideal involve finding enough programmers who know the language to build a
team, the availability of compilers for that language, and the efficiency with
which programs written in a given language execute. Languages form an
approximate spectrum from "low-level" to "high-level"; "low-level" languages
are typically more machine-oriented and faster to execute, whereas "high-
level" languages are more abstract and easier to use but execute less quickly.
It is usually easier to code in "high-level" languages than in "low-level" ones.
Introduction to QBASIC
BASIC stands for Beginner’s All Purpose
Symbolic Instruction Code. It was invented
in 1963, at Dartmouth College, by the
mathematicians John George Kemeny and
Tom Kurtzas.
Features of QBASIC
1. It is a user friendly language.
2. It is widely known and accepted
programming language.
3. It is one of the most flexible languages, as
modification can easily be done in already
existing program.
4. Language is easy since the variables can be
named easily and uses simple English
phrases with mathematical expressions.
Rules of QBASIC
Every programming language has a set of rules that have to
be followed while writing a program, following are some
rules of QBASIC language:
1. All Qbasic programs are made up of series of
statements, which are executed in the order in which
they are written.
2. Every statement should have at least one Qbasic
command word. The words that BASIC recognizes are
called keywords.
3. All the command words have to be written using some
standard rules, which are called “Syntax Rules”. Syntax is
the grammar of writing the statement in a language.
Syntax Errors are generated when improper syntax is
detected.
QBASIC DATA
Data is a collection of facts and figures that is
entered into the computer through keyboard.
Data is of two types:
1. CONSTANT
a. Numeric Constant
b. Alphanumeric Constant/String
2. Variable
a. Numeric Variable
b. Alphanumeric Variable
Constant
Data whose value does not change or remains
fixed. There are two types of constants:
a. Numeric Constant: Numbers – negative or
positive used for mathematical calculations
e.g. – 10,20,0
b. Alphanumeric Constant/String: Numbers
or alphabets written within double
quotes(inverted commas “ “).
e.g. “Computer”, “Operating System”
Variable
Data whose value is not constant and may change due to some
calculation during the program execution. It is a location in the
computer’s memory, which stores the values. Depending on what
value is held. Variables are of two types:
a) Numeric Variable: The variable that holds a Numeric Constant
for arithmetic calculations (+, -, *, /) is called a Numeric Variable.
e.g. A=50, here A is the Numeric Variable
b. Alphanumeric Variable: The variable that holds an
Alphanumeric Constant, which cannot be used for arithmetic
calculations, is called Alphanumeric Variable or String Variable.
An Alphanumeric variable must end with a $ sign and the
Alphanumeric constant must be enclosed in inverted commas.
e.g. Name$=“Akanksha”, here Name$ is an Alphanumeric
Variable
Types of Mode in QBASIC
Once QBASIC program is loaded into the
computer memory, it displays Ok prompt. Ok
means it is ready to accept the commands.
QBASIC can be made to translate in two modes:
1. Direct Mode
2. Program Mode
Direct Mode
The mode accepts single line instructions from
the user and the output is viewed as soon as
enter key is pressed. The instructions are not
stored in the memory. This mode can be used
to do quick calculations. They do not have line
numbers.
e.g. Print 3+4
Print “This is the Direct mode in QBASIC”
Program Mode
The mode is used to type a program which is
stored in the memory. They have line
numbers. We have to give the command to
get the output.
e.g. 10 Print 3+4
20 End
RUN
Command/Keywords in QBASIC and
their Functions
The following commands do not need line number.
1. LIST- The command is used to list the program on the screen.
2. RUN- The command is used to execute the program.
3. LLIST- The command is used to list of program as a hardcopy.
4. LPRINT- The command is used to get the output of the program on the
hard copy.
5. NEW- The command is used to clear the memory of the existing
program.
6. SYSTEM- The command is used to take you back to dos prompt.
7. PRINT AND CLS command can also be used without a line number.
Print is used to view the display on the screen and CLS to clear the
screen.
8. RME- The command is used to show the position of the mistake.
9. SAVE- The keyword is used to save the program.
10. LOAD- The keyword is used to LOAD the program from disk to the
memory.
QBASIC REMINDERS
A QBASIC program consists of lines containing
1. A line number
2. A QBASIC keyword like PRINT, END etc.
3. Each program line begins with positive
number.
4. No two lines should have same number.
Running a Program
RUN is the command used to execute the
program and get the output on the screen.
Writing a New Program
It is possible to overwrite lines with the new
statements, but if you want to write a totally
new program use a NEW command.
Exiting QBASIC
In order to exit the QBASIC program SYSTEM
command is used.
Vincent Valenzuela
Joseph Loveranes
9-Neumann
SY 2014-2015

More Related Content

What's hot

Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Computer languages
Computer languagesComputer languages
Computer languages
AqdasNoor
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer ProgrammingProf. Erwin Globio
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
educationfront
 
Computer Software & It's types.
Computer Software &  It's types.Computer Software &  It's types.
Computer Software & It's types.
Mohit Dhankher
 
Introduction to qbasic
Introduction to qbasicIntroduction to qbasic
Introduction to qbasic
Richa Karthikeyan
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
Richa Sharma
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
SURBHI SAROHA
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
Ali Raza
 
Classification of Programming Languages
Classification of Programming LanguagesClassification of Programming Languages
Classification of Programming Languages
Project Student
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
imtiazalijoono
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
SHUBHAM PATIDAR FISHERIES ADDAA
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
Juhi Bhoyar
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
 
System software and Application software
System software and Application softwareSystem software and Application software
System software and Application software
baabtra.com - No. 1 supplier of quality freshers
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming ConceptsJussi Pohjolainen
 
Introduction to computer Powerpoint Presentation
Introduction to computer Powerpoint PresentationIntroduction to computer Powerpoint Presentation
Introduction to computer Powerpoint Presentation
Jibin Sr. Plamoottukada
 

What's hot (20)

Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Computer Software & It's types.
Computer Software &  It's types.Computer Software &  It's types.
Computer Software & It's types.
 
Introduction to qbasic
Introduction to qbasicIntroduction to qbasic
Introduction to qbasic
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Classification of Programming Languages
Classification of Programming LanguagesClassification of Programming Languages
Classification of Programming Languages
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
System software and Application software
System software and Application softwareSystem software and Application software
System software and Application software
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
 
Introduction to computer Powerpoint Presentation
Introduction to computer Powerpoint PresentationIntroduction to computer Powerpoint Presentation
Introduction to computer Powerpoint Presentation
 

Similar to Computer programming

Qbasic program
Qbasic programQbasic program
Qbasic program
Fercie Caseria
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
AttaullahRahimoon
 
Compiler an overview
Compiler  an overviewCompiler  an overview
Compiler an overview
amudha arul
 
C programming
C programmingC programming
C programming
Jigarthacker
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
Dr. C.V. Suresh Babu
 
Programming in C
Programming in CProgramming in C
Programming in C
Rvishnupriya2
 
Programming in c
Programming in cProgramming in c
Programming in c
vishnu973656
 
SSD Mod 2 -18CS61_Notes.pdf
SSD Mod 2 -18CS61_Notes.pdfSSD Mod 2 -18CS61_Notes.pdf
SSD Mod 2 -18CS61_Notes.pdf
JacobDragonette
 
Qbasic Tutorial
Qbasic TutorialQbasic Tutorial
Qbasic Tutorial
Joy Hilary Yambao
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
Md. Rakibuzzaman Khan Pathan
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
Subramanyambharathis
 
Unit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptxUnit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptx
Asst.prof M.Gokilavani
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
tharwatabdulhmed
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
Hossam Hassan
 
C.pdf
C.pdfC.pdf
Programming : QBASIC
Programming : QBASICProgramming : QBASIC
Programming : QBASIC
vnuvalcrepollo
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
Kuppusamy P
 

Similar to Computer programming (20)

Qbasic program
Qbasic programQbasic program
Qbasic program
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Compiler an overview
Compiler  an overviewCompiler  an overview
Compiler an overview
 
C programming
C programmingC programming
C programming
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Programming in c
Programming in cProgramming in c
Programming in c
 
SSD Mod 2 -18CS61_Notes.pdf
SSD Mod 2 -18CS61_Notes.pdfSSD Mod 2 -18CS61_Notes.pdf
SSD Mod 2 -18CS61_Notes.pdf
 
Qbasic Tutorial
Qbasic TutorialQbasic Tutorial
Qbasic Tutorial
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
 
Unit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptxUnit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptx
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
 
C.pdf
C.pdfC.pdf
C.pdf
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Programming : QBASIC
Programming : QBASICProgramming : QBASIC
Programming : QBASIC
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
 

Recently uploaded

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 

Recently uploaded (20)

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 

Computer programming

  • 1. What is Computer Programming? Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable computer programs. Programming involves activities such as analysis, developing understanding, generating algorithms, verification of requirements of algorithms including their correctness and resources consumption, and implementation (commonly referred to as coding) of algorithms in a target programming language.
  • 2. Purpose The purpose of programming is to find a sequence of instructions that will automate performing a specific task or solving a given problem. The process of programming thus often requires expertise in many different subjects, including knowledge of the application domain, specialized algorithms and formal logic.
  • 3. Programmers Computer programmers are those who write computer software. Their jobs usually involve: • Coding • Debugging • Documentation • Integration • Maintenance • Requirements analysis • Software architecture • Software testing • Specification
  • 4. Programming Languages Different programming languages support different styles of programming (called programming paradigms). The choice of language used is subject to many considerations, such as company policy, suitability to task, availability of third-party packages, or individual preference. Ideally, the programming language best suited for the task at hand will be selected. Trade-offs from this ideal involve finding enough programmers who know the language to build a team, the availability of compilers for that language, and the efficiency with which programs written in a given language execute. Languages form an approximate spectrum from "low-level" to "high-level"; "low-level" languages are typically more machine-oriented and faster to execute, whereas "high- level" languages are more abstract and easier to use but execute less quickly. It is usually easier to code in "high-level" languages than in "low-level" ones.
  • 5. Introduction to QBASIC BASIC stands for Beginner’s All Purpose Symbolic Instruction Code. It was invented in 1963, at Dartmouth College, by the mathematicians John George Kemeny and Tom Kurtzas.
  • 6. Features of QBASIC 1. It is a user friendly language. 2. It is widely known and accepted programming language. 3. It is one of the most flexible languages, as modification can easily be done in already existing program. 4. Language is easy since the variables can be named easily and uses simple English phrases with mathematical expressions.
  • 7. Rules of QBASIC Every programming language has a set of rules that have to be followed while writing a program, following are some rules of QBASIC language: 1. All Qbasic programs are made up of series of statements, which are executed in the order in which they are written. 2. Every statement should have at least one Qbasic command word. The words that BASIC recognizes are called keywords. 3. All the command words have to be written using some standard rules, which are called “Syntax Rules”. Syntax is the grammar of writing the statement in a language. Syntax Errors are generated when improper syntax is detected.
  • 8. QBASIC DATA Data is a collection of facts and figures that is entered into the computer through keyboard. Data is of two types: 1. CONSTANT a. Numeric Constant b. Alphanumeric Constant/String 2. Variable a. Numeric Variable b. Alphanumeric Variable
  • 9. Constant Data whose value does not change or remains fixed. There are two types of constants: a. Numeric Constant: Numbers – negative or positive used for mathematical calculations e.g. – 10,20,0 b. Alphanumeric Constant/String: Numbers or alphabets written within double quotes(inverted commas “ “). e.g. “Computer”, “Operating System”
  • 10. Variable Data whose value is not constant and may change due to some calculation during the program execution. It is a location in the computer’s memory, which stores the values. Depending on what value is held. Variables are of two types: a) Numeric Variable: The variable that holds a Numeric Constant for arithmetic calculations (+, -, *, /) is called a Numeric Variable. e.g. A=50, here A is the Numeric Variable b. Alphanumeric Variable: The variable that holds an Alphanumeric Constant, which cannot be used for arithmetic calculations, is called Alphanumeric Variable or String Variable. An Alphanumeric variable must end with a $ sign and the Alphanumeric constant must be enclosed in inverted commas. e.g. Name$=“Akanksha”, here Name$ is an Alphanumeric Variable
  • 11. Types of Mode in QBASIC Once QBASIC program is loaded into the computer memory, it displays Ok prompt. Ok means it is ready to accept the commands. QBASIC can be made to translate in two modes: 1. Direct Mode 2. Program Mode
  • 12. Direct Mode The mode accepts single line instructions from the user and the output is viewed as soon as enter key is pressed. The instructions are not stored in the memory. This mode can be used to do quick calculations. They do not have line numbers. e.g. Print 3+4 Print “This is the Direct mode in QBASIC”
  • 13. Program Mode The mode is used to type a program which is stored in the memory. They have line numbers. We have to give the command to get the output. e.g. 10 Print 3+4 20 End RUN
  • 14. Command/Keywords in QBASIC and their Functions The following commands do not need line number. 1. LIST- The command is used to list the program on the screen. 2. RUN- The command is used to execute the program. 3. LLIST- The command is used to list of program as a hardcopy. 4. LPRINT- The command is used to get the output of the program on the hard copy. 5. NEW- The command is used to clear the memory of the existing program. 6. SYSTEM- The command is used to take you back to dos prompt. 7. PRINT AND CLS command can also be used without a line number. Print is used to view the display on the screen and CLS to clear the screen. 8. RME- The command is used to show the position of the mistake. 9. SAVE- The keyword is used to save the program. 10. LOAD- The keyword is used to LOAD the program from disk to the memory.
  • 15. QBASIC REMINDERS A QBASIC program consists of lines containing 1. A line number 2. A QBASIC keyword like PRINT, END etc. 3. Each program line begins with positive number. 4. No two lines should have same number.
  • 16. Running a Program RUN is the command used to execute the program and get the output on the screen. Writing a New Program It is possible to overwrite lines with the new statements, but if you want to write a totally new program use a NEW command. Exiting QBASIC In order to exit the QBASIC program SYSTEM command is used.