Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design
Chapter 1: An Introduction to Visual Basic.NET and Program Design 2 Objectives Describe Visual Basic.NET Describe the Visual Basic programming language Describe programs, programming, applications, and program development Identify each of the phases in the development cycle Define an algorithm
Chapter 1: An Introduction to Visual Basic.NET and Program Design 3 Objectives Define objects, attributes, and methods Explain object-oriented programming (OOP) and object-oriented design (OOD) Describe rapid application development (RAD) Identify the key components of.NET
Chapter 1: An Introduction to Visual Basic.NET and Program Design 4 Introduction A program is a step-by-step series of instructions Programming is the process of writing these instructions Programmers, or software developers, design and write programs An application is a collection of one or more programs Program development is the process of writing applications
Chapter 1: An Introduction to Visual Basic.NET and Program Design 5 What is Microsoft Visual Basic.NET? Programming environment that allows you to build programs for the Windows operating system or any system that supports Microsoft’s.NET architecture Based on the Visual Basic programming language –Evolved from BASIC (Designer’s All-purpose Symbolic Instruction Code
Chapter 1: An Introduction to Visual Basic.NET and Program Design 6
7 Programming and Application Development Stored program – when a program starts to run, its instructions are placed into the computer’s memory Machine Cycle Fetch - the 1 st instruction is located and sent to the control unit Decode - where it is translated into a form the computer can understand Execute – then the instruction is carried out Stored –the result of that instruction is placed in memory
Chapter 1: An Introduction to Visual Basic.NET and Program Design 8 Application Types Windows Applications uses GUI (graphical user interface)
Chapter 1: An Introduction to Visual Basic.NET and Program Design 9 Application Types Web Applications
Chapter 1: An Introduction to Visual Basic.NET and Program Design 10 Application Types Console Applications
Chapter 1: An Introduction to Visual Basic.NET and Program Design 11 Application Types Windows Services –a service program runs in an operating system and performs such tasks as maintenance, information gathering, security and notification but requires no user interaction
Chapter 1: An Introduction to Visual Basic.NET and Program Design 12 Application Types Web Services
Chapter 1: An Introduction to Visual Basic.NET and Program Design 13 Application Types Components – function as a prebuilt program that can be used by other programs or applications to complete a task or process; provide benefit of reusability
Chapter 1: An Introduction to Visual Basic.NET and Program Design 14 The Development Cycle
Chapter 1: An Introduction to Visual Basic.NET and Program Design 15
Chapter 1: An Introduction to Visual Basic.NET and Program Design 16 Phase 1 – Analyze Requirements Verify the requirements are complete Make the initial determination that it is possible to solve the problem using a program List input and output data required Determine whether the input data is available for testing
Chapter 1: An Introduction to Visual Basic.NET and Program Design 17 Phase 1 – Analyze Requirements Ensure that the information provided explains how to convert the input data into output data so that a solution, or algorithm, can be developed
Chapter 1: An Introduction to Visual Basic.NET and Program Design 18
Chapter 1: An Introduction to Visual Basic.NET and Program Design 19 Phase 2 – Design Solution Develop a logical model that illustrates the sequence of steps you will take to solve the problem Objects are smaller pieces of a program Object model –Attributes –Methods
Chapter 1: An Introduction to Visual Basic.NET and Program Design 20 Phase 2 – Design Solution Object Model
Chapter 1: An Introduction to Visual Basic.NET and Program Design 21 Phase 2 – Design Solution Flowcharts graphically represent the logic used to develop an algorithm Control structures, included in flowcharts, allow the programmer to specify the code that will execute only if a condition is met Pseudocode expresses the step-by-step instructions using keywords and depicts logical groupings or structures using indentation
Chapter 1: An Introduction to Visual Basic.NET and Program Design 22
Chapter 1: An Introduction to Visual Basic.NET and Program Design 23 Control Structures –portions of a program that allows the programmer to specify that code will be executed only if a condition is met
Chapter 1: An Introduction to Visual Basic.NET and Program Design 24 Pseudocode –also used by programmers to develop the logic of an algorithm (solution) for a program; expresses the step-by-step instructions using keywords, and depicts logical groupings or structures using indentation
Chapter 1: An Introduction to Visual Basic.NET and Program Design 25 Storyboard- hand-drawn sketch of how the application window or Web page will look
Chapter 1: An Introduction to Visual Basic.NET and Program Design 26 Phase 3 – Validate Design Validate, or check, the program design Step through the solution with test data Compare the program design with the original requirements
Chapter 1: An Introduction to Visual Basic.NET and Program Design 27 Phase 4 – Implement Design Write the code that translates the design into a program Create the user interface Create comments, or notes, within the code that explains the purpose of the code Test the code as it is written
Chapter 1: An Introduction to Visual Basic.NET and Program Design 28 Phase 4 – Implement Design
Chapter 1: An Introduction to Visual Basic.NET and Program Design 29 Phase 5 – Test Solution Test plan –Test cases Integration testing – if several programs comprise a finished application Boundary values – are values that cause a certain rule to become effective; example- the 200 value in this program
Chapter 1: An Introduction to Visual Basic.NET and Program Design 30 Phase 6 – Document Solution Includes the requirements documents, program design documents, user interface documents, and documentation of the code Code should be archived electronically (Complete flowchart on pg. 1.30)
Chapter 1: An Introduction to Visual Basic.NET and Program Design 31 Object-Oriented Programming and Object-Oriented Design Object-oriented programming –Data and the code that operates on the data are packaged into a single unit called an object Object-oriented design –Represents the logical plan of a program as a set of interactions among objects and operations
Chapter 1: An Introduction to Visual Basic.NET and Program Design 32 Objects Aggregation –An object composed of other objects Class –Programmatic implementation, or description, of an object Unified Modeling Language –System of symbols used to describe object behaviors and interaction
Chapter 1: An Introduction to Visual Basic.NET and Program Design 33 Rapid Application Development – refers to the use of prebuilt objects to make program and application development much faster
Chapter 1: An Introduction to Visual Basic.NET and Program Design 34 Rapid Application Development attributes Methods
Chapter 1: An Introduction to Visual Basic.NET and Program Design 35 What is.NET? - encompasses a series of technologies that allows almost any type of application to run in a common environment.NET Framework- The common environment
Chapter 1: An Introduction to Visual Basic.NET and Program Design 36 The Common Language Runtime Takes control of the application and runs the application under the operating system Microsoft Intermediate Language (MSIL)
Chapter 1: An Introduction to Visual Basic.NET and Program Design 37 Summary Describe Visual Basic.NET Describe the Visual Basic programming language Describe programs, programming, applications, and program development Identify each of the phases in the development cycle Define an algorithm
Chapter 1: An Introduction to Visual Basic.NET and Program Design 38 Summary Define objects, attributes, and methods Explain object-oriented programming (OOP) and object-oriented design (OOD) Describe rapid application development (RAD) Identify the key components of.NET
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 Complete