Chapter 1 Introduction Visual Basic.NET. Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 2 Objectives Explain what Visual Basic is Contrast.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Introduction to Programming.
Advertisements

Computers Are Your Future
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
IS 118 Introduction to Development Tools
Computers: Tools for an Information Age
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
© Paradigm Publishing Inc Chapter 12 Programming Concepts and Languages.
1 Chapter-01 Introduction to Computers and C++ Programming.
PROGRAMMING LANGUAGES The Study of Programming Languages.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
A First Program Using C#
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
PZ01A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ01A -- Introduction Programming Language Design and.
Languages and Environments Higher Computing Unit 2 – Software Development.
Computers Are Your Future Eleventh Edition
1 Shawlands Academy Higher Computing Software Development Unit.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
Microsoft Visual Basic 2005: Reloaded Second Edition
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
INTRODUCTION TO COMPUTING CHAPTER NO. 06. Compilers and Language Translation Introduction The Compilation Process Phase 1 – Lexical Analysis Phase 2 –
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
1 Chapter 2 First Java Programs Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
CS101 Introduction to Computing Lecture Programming Languages.
1 The Software Development Process  Systems analysis  Systems design  Implementation  Testing  Documentation  Evaluation  Maintenance.
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
IE 423 – Design of Decision Support Systems Visual Studio Introduction to VB.NET programming.
1 Introduction Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Sections
SE: CHAPTER 7 Writing The Program
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
The Software Development Process
Programming Fundamentals Lecture No. 2. Course Objectives Objectives of this course are three fold 1. To appreciate the need for a programming language.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Overview.ppt Overview-An Overview of Visual Basic.NET An Overview of Visual Basic.NET.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
CSCI-235 Micro-Computer Applications
Introduction to Visual Basic 2008 Programming
Introduction to Operating System (OS)
An Introduction to Visual Basic .NET and Program Design
VISUAL BASIC – CHAPTER ONE NOTES An Introduction to Visual Basic
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
CIS16 Application Development – Programming with Visual Basic
강의 내용 및 방법 접근방법 리포트 시험 Lambda Calculus, Proof of Correctness
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Presentation transcript:

Chapter 1 Introduction Visual Basic.NET

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 2 Objectives Explain what Visual Basic is Contrast the operating environment of Visual Basic with procedure-oriented languages Set forth the criteria for a sound application program Enumerate the steps to develop a program Understand the importance of hands-on experience in learning a programming language

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 3 Evolution of Visual Basic Evolved from BASIC (Beginner’s All-Purpose Symbolic Instruction Code) – Designed to provide interactive computing on mainframe computers Widely available on early microcomputers Introduction of personal computers (early 1980’s) – Microsoft introduced GW-Basic with the DOS operating system

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 4 Language Processors Required to process programs into a program the computer can understand Interpreters – Read, interpret, and carry out one line of code at a time Compilers – Translate a source program (i.e. one written in VB) – Create an object program (one a machine can read) Object programs also called “executables” – Compiled programs run much faster

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 5 Characteristics of Visual Basic Provides visual objects (controls) that can be drawn onto a window (form) – Makes building the interface much easier Object-oriented code structure – Code structured around objects Easy to understand syntax “IntelliSense” technology helps write code – Objects can be reused and extended through inheritance Event-driven language – Things happen in response to events Examples of events: mouse click, opening or closing a window – The user, not the program determines the sequence of operations

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 6 Creating a VB Program Takes place in the Visual Studio Integrated Development Environment (IDE) – Provides an environment for creating the interfaces, writing and testing code, and making changes – Provides the.NET framework for Web services, Visual C#.NET, Visual Basic.NET, etc. Statement: an instruction that can stand alone Code: a group of statements

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 7 Overview of VB Program Development Criteria of a sound application – Internal criteria geared to the programmer – External criteria geared to the user Program development cycle – Understand distinct steps in the process of developing an application

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 8 External Criteria Functionality – Does the program do what it is supposed to do? Efficiency – Program should minimize the use of computer resources Includes memory, processing time, and storage space User-Friendliness – Make the application easy to use Includes helpful error messages, guarding against user errors, consistent appearance and behavior of windows

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 9 Internal Criteria Consistency in coding style – Following conventions most programmers follow Indenting blocks of code Naming objects with predefined prefixes Code clarity and readability – Use meaningful variable names – Adding comments to code can aid understanding Modularity in code design – Each block of code is isolated from the rest of the program Easier to debug, review, and revise

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 10 Internal Criteria Elegant algorithms – Algorithm: a systematic approach to solving the programming problem – Logic easy to trace and implement – Efficient in terms of speed and storage requirements Code maintainability – General applicability: code will not require revision even if the program requirements change

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 11 Steps in Developing a Program Developing an application requires several distinct steps Skipping or not giving careful attention to steps can create a lot of rework, headaches, and expense – Mistakes made in the earlier stages of program development require much more time, money, and hassle to rework

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 12 Steps in Program Development Analyze and define the problem – Program must meet application needs Design the visual interface – Decide what data fields appear and the appropriate controls Define User-Program Interaction – Define events, both user actions and system activities

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 13 Steps in Program Development Design the code structure – Structure dictated by responses program should carry out – Well-designed code enhances maintainability Write Code – Develop code based on your analysis of the problem and design of the structure

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 14 Steps in Program Development Test and edit the program – Various error types: Syntax errors: failure to follow programming rules Semantic errors: failure to say what you mean Logic errors: difference between what programmer thinks code will do and what it actually does Place the program into production – Production program works with live data and produces “real” results

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 15 Learning the Language Comparing learning a spoken language and learning a programming language VocabularyTypes of objects, methods, and events GrammarSyntax rules SemanticsMeaning of how programming constructs fit together EffectivenessFinding better ways to express the same idea

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 16 Hands-on Practice Programming is a skill, like playing a sport or a musical instrument Practice enables you to gain familiarity with: – The IDE(Integrated Development Environment) – The vocabulary and syntax rules of VB – How different parts of the code fit together – Identify opportunities for code improvement

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 17 The IDE

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 18 Summary Visual Basic evolved from BASIC Visual elements allow easy changes in user interface Object-oriented syntax makes it easier to learn vocabulary and syntax Object-oriented language enhances code reusability – Inheritance allows programmer to reuse code

Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 19 Summary Sound programs must meet internal criteria and external criteria There are distinct steps in developing code. Don’t try to shortcut the early stages Learning a programming language is like learning a spoken language PRACTICE, PRACTICE, PRACTICE