You are on page 1of 36

Introduction to Programming Languages

VB.net with Programming Concepts

What is a Computer Program?


Simply a kind of instructions that are used to communicate with the computer is called a

Computer Program.

What is a Programming Language ?

This is a kind of media, which is given facilities to communicate with the Computer.

Classification of Programming Languages


Programming Languages can be classified using many ways or methods.

First Method In this method Computer programming Languages could be categorized into two groups

Low -Level Languages


Machine Language, Assembly, C, Fortran, and BASIC.

High -Level Languages.


Pascal,Prolog,C++,Java,VB etc.,

Second Method

Generations of Programming Languages


In this method Programming Languages are classified into five Generations. The Five Generations are .

First Generation
The Machine Languages are identified as First Generation Languages. Computers can directly understand only the Machine Language. The programming deals with two numbers 1 and 0.
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Second Generation

The Assembly Languages are identified as Second Generation Languages.

Second Generation

The underlying idea of these languages is that they are central to common concept such as load, store, jump, sub, etc.

Second Generation

Different Computer manufacturers are used different Assembly Languages.

Third Generation

The Third Generation languages are so close to our Natural Languages.


The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Third Generation

Achieving this at the first place, people developed the language FORTRAN (FORrmula TRANslation)

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Third Generation

Third Generation language is providing standard data types such as integers, floating point numbers, and characters etc.,

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Fourth Generation

The Fourth Generation languages are created to the particular people who are interested in languages, which allow one to use with very little programming skills.
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Fourth Generation

These languages are heavily used in conjunction with relational databases. Several examples include QBF ( Query By-Forms), Ingers, Informix, Sybex, Dbase III, Paradox etc,.

Fifth Generation

The Fifth Generation Languages were born with the conception of Fifth Generation Computers .
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Programs For GUI

Fifth Generation

This generation languages are identified as an AI (Artificial Intelligence) . Prolog & Lisp are selected Fifth Generation Languages.

Most Visual Languages

Fifth Generation

These Generation languages, which can be used to instruct computers in terms of what -to-do.

Translators There are three types of Translators.

Assemblers Interpreters :- Line by Line Compilers


Entire Program machine code. Translate in to

Introduction to Visual Studio.Net

It requires Windows XP or Windows 2000 to


run.

VS.Net includes several products: VB.Net;


C#; C++; but not Java.

There are 5 CDs in VS.Net; 3 contain MSDN


Library an optional (but highly recommended) product. The MSDN Library is VS.Nets Help files, and contains books, articles, etc. to help use VS.Net.

Introduction to Visual Studio Dot Net

Visual Studio.Net is a graphical interactive development environment (IDE).

Introduction to Visual Studio Dot Net


It supports VB.Net development for the MS .Net 1.1 Framework a set of DLLs that contain Microsofts latest development platform. This Framework (DLLs) can be installed on older operating systems like Windows 98 & Windows ME. VB.Net cannot run on those OSs, but the programs you develop with VB.Net can run on those platforms if the .Net 1.1 Framework is installed.

Introduction to Visual Studio Dot Net

The .Net 1.1 Framework can be downloaded here:


.NET Framework Version 1.1 Redistributable Package http://msdn.microsoft.com/downloa ds/

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Start Visual Studio.Net 2003 Click on New Project Button

In left window, select Visual Basic Projects. In right window, select Console Application Name it HelloWorld (Note: No Spaces!) Click Browse button to select your D:\VB Folder. Note location where project will be saved. Click OK button to create the project.

HelloWorld VB.Net

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

VB.Net IDE Discussion


In Class, we will/did discuss the following: Menu, Toolbar below menu Module1 code window Solution Explorer Window Properties & Dynamic Help windows Toolbox & Server Explorer windows How to pin & un-pin windows How to get help How to re-display the Start page (if closed out).

Your first Hello World Program


Add the following between Sub End Sub Sub Main() Console.WriteLine("Hello World!!!") Console.ReadLine() End Sub Next, on the toolbar, click the triangle next to the Debug box, which will start your program. lines to the code window

Console Output

Note the console window. Press enter to exist that window.

The End .

Prepared by Ruvan Abeysekara contactruvan@yahoo.com

Third Method

Procedural and Declarative


In developing computer programming languages people have adopted these two notions of what-to-do and how-to-do in providing instructions to computers. In computational terms these two notions are known as : Procedural (how-to-do)

Declarative (what-to-do)

Fourth Method

Visual and Non visual

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Fifth Method

Structured and Event Driven

Sixth Method

Object Oriented & Non object Oriented

Program Development Life Cycle


Analyze the Problem Documentation & Implementing Design a Solution

Program Development Life Cycle


Test the Program
Errors & Debagging

Test the Design Code the Program

Documentation & Implementing

Documenting the program consist of writing a description of its purpose end process. This is prepared to users end programmers.

You might also like