Introduction to Visual Basic Programming

Introduction to Visual Basic ProgrammingObjectives
. To be able to write simple Visual Basic programs.
. To be able to use input and output statements.
. To become familiar with data types.
. To understand basic memory concepts.
. To be able to use arithmetic operators.
. To understand the precedence of arithmetic operators.
. To be able to write decision-making statements.
. To be able to use equality and relational operators.


Visual Basic enables a disciplined approach to computer-program design. In this chapter,we introduce Visual Basic programming and present examples that illustrate several important features of the language. To help readers better understand the examples in this andother chapters, program code is analyzed one line at a time. In this chapter, we introduceconsole applications-applications that contain only text output. Although there are sever-al types of Visual Basic projects, the console application is one of the most fundamentaltypes. Text output in a console application is displayed in a command window (also calleda console window). On Microsoft Windows 95/98, the command window is called the MS-DOS prompt; whereas on Microsoft Windows NT/2000, the command window is called the command prompt. With a sophisticated language like Visual Basic, programmers can create programs that input and output information in a variety of ways, which we discuss throughout the book.

Visual Basic keywords and identifiers are not case sensitive. This means that upper-case and lowercase letters are considered to be identical, which causes modfirstwelcome and modFirstWelcome to be interpreted as the same identifier. Although keywords can appear to be case sensitive, but they are not. The Visual Studio .NET IDE automatically applies the proper case to each letter of a keyword, so, when module is typed, it is changed to Module when the Enter key is pressed. Line 5 is a blank line. Often, blank lines and space characters are used throughout a program to make the program easier to read. Collectively, blank lines, space characters and tab characters are known as whitespace (space characters and tabs are known specifically as whitespace characters).

Website: ftp.prenhall.com | Filesize: 1158kb
No of Page(s): 38
Click here to download Introduction to Visual Basic Programming.

Related Tutorial

Tags: , , , ,

Comments

Leave a Reply