Visual Basic 2005 for Programmers (2nd Edition)

Comment is free, but facts are sacred.

C. P. Scott

When faced with a decision, I always ask, "What would be the most fun?"

Peggy Walker

Equality, in a social sense, may be divided into that of condition and that of rights.

James Fenimore Cooper

Objectives

In this chapter you will learn:

  • To write simple Visual Basic programs using code rather than visual programming.

  • To write statements that input data from the keyboard and output data to the screen.

  • To declare and use data of various types.

  • To store and retrieve data from memory.

  • To use arithmetic operators to perform calculations.

  • To use the precedence of arithmetic operators to determine the order in which operators are applied.

  • To write decision-making statements.

  • To use equality and relational operators to compare operands.

  • To use message dialogs to display messages.

Outline

3.1 Introduction

3.2 Displaying a Line of Text

3.3 Creating A Console Application in Visual Basic Express

3.4 Displaying a Single Line of Text with Multiple Statements

3.5 Adding Integers

3.6 Arithmetic

3.7 Decision Making: Equality and Relational Operators

3.8 Using a Message Dialog to Display a Message

3.9 (Optional) Software Engineering Case Study: Examining the ATM Requirements Document

3.10 Wrap-Up

3.11 Web Resources

Категории