1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)

Slides:



Advertisements
Similar presentations
An Introduction to Visual Basic Terms & Concepts.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Software Development Languages and Environments. Programming languages High level languages are problem orientated contain many English words are easier.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Automating Tasks With Macros
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Program Flow Charting How to tackle the beginning stage a program design.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
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.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Introduction 01_intro.ppt
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
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.
A First Program Using C#
Introduction to VB.NET Tonga Institute of Higher Education.
Tutorial 11 Introduction to Visual Basic zLanguage developed for special-purpose Windows applications – 1991 zUses IDE – Integrated Development Environment.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
Microsoft Visual Basic 2005: Reloaded Second Edition
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
An Introduction to Visual Basic
1 Documenting Your Project. 2 Documenting your Project Insert Banner Comments in your code Comment - coding statement used by humans not the compiler.
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.
CHAPTER FOUR COMPUTER SOFTWARE.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
1.
 Programming - the process of creating computer programs.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Visual Basic Integrated Development Environment (IDE) 56:150 Information System Design.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
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.
Development Environment
Introduction to Computer CC111
Introduction to .NET Framework Ch2 – Deitel’s Book
1. Introduction to Visual Basic
An Introduction to Visual Basic
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Chapter 2- Visual Basic Schneider
A programming language
Presentation transcript:

1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)

2 Objectives Describe compilers, interpreters, source code files, pseudo code files, native code files, and executable files. Describe the steps in building an application program. Describe the steps in building a project with Visual Basic. Create a Visual Basic project following the step- by-step approach.

3 Programmer ’ s Lingo Program - detailed set of instructions for a computer Programming Language - tool used to create a program; defined by semantics and syntax Semantics - the meaning of words in a language Syntax - rules for combining symbols of a language

4 Programmer ’ s Lingo Source Code (code) - program you write using a programming language Interpreter - translates and executes source code statement by statement

5 Programmer ’ s Lingo Interpreter Process

6 Programmer ’ s Lingo Compiler - translates source code into an executable file Executable file - standalone file that runs outside the Visual Basic environment; Used to distribute most Windows applications Package and Deployment Wizard (Application Setup Wizard in VB5) - creates all the files necessary to distribute your projects

7 Programmer ’ s Lingo Compiler Process

8 Programmer ’ s Lingo Pseudo Code (P-code) - intermediate step between source code and native code Native Code (machine language) -instructions the computer can execute directly Dynamic Link Library (DLL) - translates instructions in executable file at runtime

9 Steps in Building a Project 1. Define the Problem 2. Design and Plan 3. Build the Program 4. Run the Program 5. Test and Debug 6. Document Your Program 7. Compile and Distribute Your Program

10 Steps in Building a Project Step 1 - Define the Problem Decide exactly what problem you want to solve Or task you want to perform Understand what needs to be done Specification - details of your problem definition

11 Steps in Building a Project Step 2 - Design and Plan Most important step of the process Find a step-by-step solution to your problem Algorithm - step-by-step solution to a problem Design User Interface; draw sketches of screens, graphics, text and button

12 Steps in Building a Project Step 3 - Build the Program Translate your solution using the programming language Coding - writing a program in a programming language Create the user interface, set properties Write code for commands and instructions

13 Steps in Building a Project Step 4 - Run the Program Run the program in the programming environment Visual Basic Interactive Development Environment for VB Simply click the Start button

14 Steps in Building a Project Step 5 - Test and Debug Testing - running your program and looking for errors Debugging - process of removing errors from a program Bug - error in a program Repeat until your program runs as designed

15 Steps in Building a Project Step 6 - Document your Program Very important if program will be updated in the future Documentation - consists of notes and materials that describes a program Organize the documentation

16 Steps in Building a Project Step 7 - Compile and Distribute Proceed to this step only after all bugs have been discovered and removed Distribute program to end user End User - the target audience for your final program

17 Steps in Building a Deck 1. Define the Problem - deck for grill, table and 4 chairs 2. Design and Plan - sketch a floor plan 3. Build the Deck - oops, forgot stairs 4-5. Run, Test, and Debug - as we built 6. Document the Work - receipts and plans 7. Compile and Distribute - invite friends for a cookout to share and enjoy new deck

18 Critique the Process Programming is a building process Make-or-buy decision - build it or buy it Look for flaws before building Much easier and less expensive to correct flaws during specification step Work smart; gather documentation throughout process Test and debug to avoid dissatisfied customers and potential lawsuits

19 Build a Visual Basic Application

20 Build a Visual Basic Application 1. Define the Problem 2. Design and Plan 3. Build the Program 4. Run the Program 5. Test and Debug 6. Document your Program 7. Compile and Distribute

21 Build Your First Application Hands-On Exercise 1 (p.47-57) Create a New Project Set Visual Basic Options Restart Visual Basic Create the Initial Screen Create the Final Screen Add an Image to the Final Screen Save Your Project Run Your Project Close the Project and Exit Visual Basic

22 Project Files vbp extension = Visual Basic Project file that tracks all components frm extension = Form file separate file for each form frx extension = Binary form file cannot be read by humans vbw extension = Visual Basic workspace

23 The File Menu Project commands Make executable commands Most recent project list Exit command

24 The File Menu New Project Open Project Add Project Remove Project Save Project Save Project As Save Component Save Component As Print Print Setup

25 The File Menu Template - particular pattern for a project or a project element; start a project from a template saves time Existing tab - displays VB projects Recent tab - displays most recently accessed projects Project Groups - a collection of several projects

26 Using the Code Editor GUI (Graphical User Interface) - forms and windows that the user sees Property - a characteristic or attribute of an object such as color and size Event - a user action such as clicking a button Code Editor window - editor specially designed to help you when writing code

27 Testing and Debugging Humans are not perfect Rarely code programs right the first time Test to find problems Debug to correct problems First bug - Grace Hopper story

28 Code, Test and Debug Your First Application Hands-On Exercise 2 (p.63-71) Open the Hello World Project Change the Form ’ s properties Change the Command Button ’ s properties Change the Label ’ s properties Change the Image ’ s property Add Code for the Click Here button Add Code for the Exit button Save and Run your project Test and Debug your project Exit Visual Basic End of Lecture