Professional Documents
Culture Documents
What is a Software?
Made of instructions.
Unseen/ intangible/ not physically appreciated.
Our focus:
Software development with Visual BASIC.NET
1
9/4/2009
Programming
What is Programming or a programme?
Consider a programme lineout handed to you in a ceremony
Consider a schedule
Examples:
Going to Accra
Putting on a computer
Programming
Further examples:
Finding the sum of two numbers
Finding the area of a rectangle
Finding the Profit (selling price – cost price)
Finding the greater of two numbers
Finding the greater of three numbers
Note:
A program can be as simple as finding the sum of two numbers or as
complex as finding the integral of an equation
Assignment:
Finding the greater of more than three numbers
2
9/4/2009
Programming
Programme representations:
Algorithm
Pseudo code
Flowcharts
Example: finding the greater of two numbers
Algorithm Pseudo code Flowchart
Int a, b, greater
1. Get two numbers ‘a’ and ‘b’ 1. Let a, b and greater be
numbers Input a, b
2. If ‘a’ is greater than ‘b’ then
the greater is ‘a’ else the 2. Input a, b Yes No
greater is ‘b’ a>b?
3. If a>b then greater = a
3. Give the greater number else greater =b greater = a greater = b
4. Output greater
Output greater
Programming Language
What is a language?
systematic means of communicating by the use of sounds or
conventional symbols
Common Natural Languages:
Ewe
Twi
English
French
Common Programming Languages
VB.NET
C++
Java
Perl
Regent University, Ghana By: JESILO© 2009
3
9/4/2009
BASIC
BASIC stands for:
Beginners All-purpose Symbolic Instruction Code
VB vrs VB.NET
What is the difference between VB and VB.NET?
4
9/4/2009
.NET
What is .NET?
It is a software framework by Microsoft; introduced in 2006.
It is made of several parts
- Common Language Runtime (CLR)
- Base Class Library (BCL)
- Compilers for different languages
Our Focus:
VB.NET Compiler
- A compiler is primarily used for programs that translate source code from a
high level language to a lower level language (zeros and ones)
- Compiles to Microsoft Intermediate Language (MSIL)
- During execution MSIL is JIT-compiled into Machine Code
.NET Compilation
5
9/4/2009
.NET Advantages
Advantages of the .NET Framework?
Language Interoperability
Strong support for the Web
Eradicates DLL Hell (Versioning problems)
Enhanced Security
Strong support for small devices
Simplified development efforts
Easy application deployment and maintenance
Robust managed-code environment
.NET Installation
How to install the .NET Framework?
For the solution to this, go to the masters:
http://www.microsoft.com/downloads/details.aspx?familyid=0
856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en
6
9/4/2009
References
http://www.google.co.uk/search?hl=en&q=what+is+a+language&
meta=
dotNET Tutorials for Beginners
http://www.startvbdotnet.com/dotnet/frameworkadvantages.asp
x
http://msdn.microsoft.com/en-us/embedded/bb278106.aspx
http://msdn.microsoft.com/en-us/embedded/bb278 106.aspx