SlideShare a Scribd company logo
1 of 7
SYSTEM DEVELOPMENT
Programming
VARIABLES
• VARIABLE: is a factor that can
change in quality, quantity or size,
which you have to take into
account in situation
• For example you can
visualise a variable as a
box
In a memory that can
store specific value or
character
NAMING A VARIABLE
• Rule to adhere when
naming a variable
1. The name must be descriptive e.g.
school, mark.
2. It may not contain a space but more
than one word may be joined e.g.
nameofschool
3. It can contain letters and numbers,
but not numbers only e.g. class32
4. It must begin with a letter and not
start with a number
5. It can not contain any special
characters e.g. !@#$%^&
6. It may not be too long
7. The name cannot be a reserved word
in the language (e.g. integer, string)
• Naming using Hungarian
naming notation
Use the first three-letter
prefix on the first 3
characters of the variable
name
NB* the 3-letter prefix must
indicate the data type
Data types and prefix
Data type Prefix Example
Integer Int Inttotal
Decimal Dec decamount
String Str Strname
Boolean Bln Blnvalueentered
Double Dbl Dblpaid
Single Sng Sngtemp
Character Cha Chadept
Long Lng Lngproduct
Short shr shrnumstudent
DECLARATION
• A variable must be
declared in order to be
used
Declaration
(Dim strname as string)
Dim indicate the block level or procedure
level scope
Strname indicate a variable name
String indicate data type
• ERRORS
1. Syntax error
2. Warning error
messages
3. Logical error
4. Run-time error
Evaluation of errors
• Syntax error
• It is mostly a spelling error
• Leaving out a required characters
• On vb.net you code will be underlined by
a blue line to show a syntax error
Intnumber1= cint(txtnumber2.text)
• Warning error messages
This is more like rebuild error
Evaluation of errors
• Logical error
This can cause the application to give
wrong results
e.g. calculating average
Average = number1 + number 2 / 2
(wrong results)
Average = (number 1 + number 2)/2
(correct results)
• Run-time errors
Can be caused by the program not being able
to execute a statement given.
e.g. multiplying a string and a value
Textbox1.text= strname * 2
Vb.net will highlight you code in yellow where
an error occurred

More Related Content

Viewers also liked

éTica y deontología
éTica y deontologíaéTica y deontología
éTica y deontologíajuanjesus1940
 
Designing an experimental capsule environment to assess the effects of bone d...
Designing an experimental capsule environment to assess the effects of bone d...Designing an experimental capsule environment to assess the effects of bone d...
Designing an experimental capsule environment to assess the effects of bone d...Koen Beyers
 
Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17
Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17
Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17Σπύρος Κυριαζίδης
 
Escalade ou induction dans la SEP
Escalade ou induction dans la SEPEscalade ou induction dans la SEP
Escalade ou induction dans la SEPLaurent Suchet
 
Particle size result interpretation
Particle size result interpretationParticle size result interpretation
Particle size result interpretationElahehEntezarmahdi
 
Pharmaceutical preformulation and formulation
Pharmaceutical preformulation  and formulationPharmaceutical preformulation  and formulation
Pharmaceutical preformulation and formulationSuchandra03
 
Health screening services
Health screening servicesHealth screening services
Health screening servicesKiran Sharma
 
Titanium wheel of life.
Titanium wheel of life.Titanium wheel of life.
Titanium wheel of life.Arman Sadeghi
 

Viewers also liked (12)

Tomas y pedro
Tomas y pedroTomas y pedro
Tomas y pedro
 
éTica y deontología
éTica y deontologíaéTica y deontología
éTica y deontología
 
Designing an experimental capsule environment to assess the effects of bone d...
Designing an experimental capsule environment to assess the effects of bone d...Designing an experimental capsule environment to assess the effects of bone d...
Designing an experimental capsule environment to assess the effects of bone d...
 
The Cycle of Life
The Cycle of LifeThe Cycle of Life
The Cycle of Life
 
Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17
Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17
Κατάσταση μαθητών που υπέβαλαν αίτηση για την Α τάξη για το σχολ. έτος 2016-17
 
Escalade ou induction dans la SEP
Escalade ou induction dans la SEPEscalade ou induction dans la SEP
Escalade ou induction dans la SEP
 
Particle size result interpretation
Particle size result interpretationParticle size result interpretation
Particle size result interpretation
 
1b what is art
1b what is art1b what is art
1b what is art
 
Scultpure
ScultpureScultpure
Scultpure
 
Pharmaceutical preformulation and formulation
Pharmaceutical preformulation  and formulationPharmaceutical preformulation  and formulation
Pharmaceutical preformulation and formulation
 
Health screening services
Health screening servicesHealth screening services
Health screening services
 
Titanium wheel of life.
Titanium wheel of life.Titanium wheel of life.
Titanium wheel of life.
 

Similar to SYSTEM DEVELOPMENT

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Visual Basic Fundamentals
Visual Basic FundamentalsVisual Basic Fundamentals
Visual Basic FundamentalsDivyaR219113
 
LESSON1-C_programming (1).GRADE 8 LESSONpptx
LESSON1-C_programming (1).GRADE 8 LESSONpptxLESSON1-C_programming (1).GRADE 8 LESSONpptx
LESSON1-C_programming (1).GRADE 8 LESSONpptxjoachimbenedicttulau
 
Chapter7-Introduction to Python.pptx
Chapter7-Introduction to Python.pptxChapter7-Introduction to Python.pptx
Chapter7-Introduction to Python.pptxlemonchoos
 
introduction to python
 introduction to python introduction to python
introduction to pythonJincy Nelson
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python ProgrammingKamal Acharya
 
C programming Ms. Pranoti Doke
C programming Ms. Pranoti DokeC programming Ms. Pranoti Doke
C programming Ms. Pranoti DokePranoti Doke
 
Structure of c_program_to_input_output
Structure of c_program_to_input_outputStructure of c_program_to_input_output
Structure of c_program_to_input_outputAnil Dutt
 
Ch 4 the mechanics of style
Ch 4 the mechanics of styleCh 4 the mechanics of style
Ch 4 the mechanics of styleDr. Hina Kaynat
 
Lession 5 the columns of a table
Lession 5 the columns of a tableLession 5 the columns of a table
Lession 5 the columns of a tableĐỗ Đức Hùng
 
Chapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingChapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingEric Chou
 
Java: Primitive Data Types
Java: Primitive Data TypesJava: Primitive Data Types
Java: Primitive Data TypesTareq Hasan
 
Learning VB.NET Programming Concepts
Learning VB.NET Programming ConceptsLearning VB.NET Programming Concepts
Learning VB.NET Programming Conceptsguest25d6e3
 
PLPgSqL- Datatypes, Language structure.pptx
PLPgSqL- Datatypes, Language structure.pptxPLPgSqL- Datatypes, Language structure.pptx
PLPgSqL- Datatypes, Language structure.pptxjohnwick814916
 
C Language presentation
C Language presentationC Language presentation
C Language presentationRupanshi rawat
 

Similar to SYSTEM DEVELOPMENT (20)

Chap 1 and 2
Chap 1 and 2Chap 1 and 2
Chap 1 and 2
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Visual Basic Fundamentals
Visual Basic FundamentalsVisual Basic Fundamentals
Visual Basic Fundamentals
 
LESSON1-C_programming (1).GRADE 8 LESSONpptx
LESSON1-C_programming (1).GRADE 8 LESSONpptxLESSON1-C_programming (1).GRADE 8 LESSONpptx
LESSON1-C_programming (1).GRADE 8 LESSONpptx
 
Chapter7-Introduction to Python.pptx
Chapter7-Introduction to Python.pptxChapter7-Introduction to Python.pptx
Chapter7-Introduction to Python.pptx
 
introduction to python
 introduction to python introduction to python
introduction to python
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
 
C programming Ms. Pranoti Doke
C programming Ms. Pranoti DokeC programming Ms. Pranoti Doke
C programming Ms. Pranoti Doke
 
lec 2.pptx
lec 2.pptxlec 2.pptx
lec 2.pptx
 
c programming session 1.pptx
c programming session 1.pptxc programming session 1.pptx
c programming session 1.pptx
 
Unit 4 plsql
Unit 4  plsqlUnit 4  plsql
Unit 4 plsql
 
Structure of c_program_to_input_output
Structure of c_program_to_input_outputStructure of c_program_to_input_output
Structure of c_program_to_input_output
 
Ch 4 the mechanics of style
Ch 4 the mechanics of styleCh 4 the mechanics of style
Ch 4 the mechanics of style
 
Lession 5 the columns of a table
Lession 5 the columns of a tableLession 5 the columns of a table
Lession 5 the columns of a table
 
Chapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingChapter 2: Elementary Programming
Chapter 2: Elementary Programming
 
Java: Primitive Data Types
Java: Primitive Data TypesJava: Primitive Data Types
Java: Primitive Data Types
 
Learning VB.NET Programming Concepts
Learning VB.NET Programming ConceptsLearning VB.NET Programming Concepts
Learning VB.NET Programming Concepts
 
PLPgSqL- Datatypes, Language structure.pptx
PLPgSqL- Datatypes, Language structure.pptxPLPgSqL- Datatypes, Language structure.pptx
PLPgSqL- Datatypes, Language structure.pptx
 
C Language presentation
C Language presentationC Language presentation
C Language presentation
 

SYSTEM DEVELOPMENT

  • 2. VARIABLES • VARIABLE: is a factor that can change in quality, quantity or size, which you have to take into account in situation • For example you can visualise a variable as a box In a memory that can store specific value or character
  • 3. NAMING A VARIABLE • Rule to adhere when naming a variable 1. The name must be descriptive e.g. school, mark. 2. It may not contain a space but more than one word may be joined e.g. nameofschool 3. It can contain letters and numbers, but not numbers only e.g. class32 4. It must begin with a letter and not start with a number 5. It can not contain any special characters e.g. !@#$%^& 6. It may not be too long 7. The name cannot be a reserved word in the language (e.g. integer, string) • Naming using Hungarian naming notation Use the first three-letter prefix on the first 3 characters of the variable name NB* the 3-letter prefix must indicate the data type
  • 4. Data types and prefix Data type Prefix Example Integer Int Inttotal Decimal Dec decamount String Str Strname Boolean Bln Blnvalueentered Double Dbl Dblpaid Single Sng Sngtemp Character Cha Chadept Long Lng Lngproduct Short shr shrnumstudent
  • 5. DECLARATION • A variable must be declared in order to be used Declaration (Dim strname as string) Dim indicate the block level or procedure level scope Strname indicate a variable name String indicate data type • ERRORS 1. Syntax error 2. Warning error messages 3. Logical error 4. Run-time error
  • 6. Evaluation of errors • Syntax error • It is mostly a spelling error • Leaving out a required characters • On vb.net you code will be underlined by a blue line to show a syntax error Intnumber1= cint(txtnumber2.text) • Warning error messages This is more like rebuild error
  • 7. Evaluation of errors • Logical error This can cause the application to give wrong results e.g. calculating average Average = number1 + number 2 / 2 (wrong results) Average = (number 1 + number 2)/2 (correct results) • Run-time errors Can be caused by the program not being able to execute a statement given. e.g. multiplying a string and a value Textbox1.text= strname * 2 Vb.net will highlight you code in yellow where an error occurred