Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.

Slides:



Advertisements
Similar presentations
Instructors: Connie Hutchison & Christopher McCoy
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Chapter 1 - An Introduction to Computers and Problem Solving
What Is A Computer System?
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
ISYS 546 Client/Server Database Application Development.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
ISYS 512 Business Application Design and Development with.Net David Chao.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
TC2-Computer Literacy Mr. Sencer February 8, 2010.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Introduction 01_intro.ppt
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Exploring the Visual Studio Integrated Development Environment
INTRODUCTION TO COMPUTER PROGRAMMING itc-314 LECTURE 01.
ISYS 512 Business Application Design and Development with.Net David Chao.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Module 1: Introduction to C# Module 2: Variables and Data Types
Microsoft Visual Basic 2005: Reloaded Second Edition
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
INTRODUCTION TO COMPUTING
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Intro to Computers Computer Apps 1.
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.
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Visual C++ Programming: Concepts and Projects
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
Chapter 11 An Introduction to Visual Basic 2005 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
Internal Lab Registeration labreg/lab/signup.aspxhttp:// labreg/lab/signup.aspx
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Microsoft Visual Basic 2012 CHAPTER ELEVEN Multiple Classes and Inheritance.
1 THE COMPUTER. 2 Input Processing Output Storage 4 basic functions.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
ISYS 512 Business Application Design and Development with.Net David Chao.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Introduction to Computer Special Thanks S.W.A.ShahNIST.
Introduction To Computers
Discovering Computers 2008 Fundamentals Fourth Edition Discovering Computers 2008 Fundamentals Fourth Edition Chapter 1 Introduction to Computers.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Chapter 1 WHAT IS A COMPUTER Faculty of ICT & Business Management Tel : BCOMP0101 Introduction to Information Technology.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Chapter 1: Introduction to Computers and Programming
Introduction to Computers
An Overview of the Computer System
Introduction to Visual Basic 2008 Programming
Introduction to .NET Framework Ch2 – Deitel’s Book
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
CIS16 Application Development – Programming with Visual Basic
Presentation transcript:

Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming

1 Chapter 1: Introduction to Visual Basic 2012 Programming2 Objectives ► Understand software and computer programs ► State the role of a developer in creating computer programs ► Specify the use of a graphical user interface and describe an event-driven program ► Specify the roles of input, processing, output, and data when running a program on a computer ► Describe the arithmetic operations a computer program can perform

1 Chapter 1: Introduction to Visual Basic 2012 Programming3 Objectives ► Explain the logical operations a computer program can perform ► Define and describe the use of a database ► Identify the use of a computer programming language in general, and Visual Basic 2012 in particular ► Explain the use of Visual Studio 2012 when developing Visual Basic 2012 programs ► Specify the programming languages available for use with Visual Studio 2012

1 Chapter 1: Introduction to Visual Basic 2012 Programming4 Objectives ► Explain the.NET 4.5 Framework ► Explain RAD ► Describe classes, objects, and the.NET Framework 4.5 class libraries ► Explain ADO.NET 4.5, ASP.NET 4.5, MSIL, and CLR ► Specify the types of Visual Basic 2012 applications

1 Chapter 1: Introduction to Visual Basic 2012 Programming5 Introduction ► The set of instructions that directs a computer to perform tasks is called computer software, or a computer program ► A computer program on a mobile device or Windows 8 computer is also called an app

1 Chapter 1: Introduction to Visual Basic 2012 Programming6 Introduction ► Computer hardware is the physical equipment associated with a computer

1 Chapter 1: Introduction to Visual Basic 2012 Programming7 Introduction ► The basic function of many programs is to accept some form of data (sometimes called input data) manipulate the data in some manner (sometimes called processing), and create some form of data usable by people or other computers (sometimes called output data or information)

1 Chapter 1: Introduction to Visual Basic 2012 Programming8 Introduction ► In order for the computer to execute a program: Program and data must be placed in the computer’s random access memory (RAM) The central processing unit (CPU) can access the program instructions and the data in RAM to perform activities as directed by the program

1 Chapter 1: Introduction to Visual Basic 2012 Programming9 Introduction ► Saving, or storing, data refers to placing the data or software electronically on a storage medium Hard disk Universal Serial Bus (USB) drive ► Persistent data remains available even after the computer power is turned off

1 Chapter 1: Introduction to Visual Basic 2012 Programming10 Introduction ► A computer program is designed and developed by people known as computer programmers, or developers ► Developers are people skilled in designing computer programs and creating them using programming languages ► Applications may consist of several computer programs working together to solve a problem ► Developers write the code for programs using a programming language

1 Chapter 1: Introduction to Visual Basic 2012 Programming11 Introduction

1 Chapter 1: Introduction to Visual Basic 2012 Programming12 Event-Driven Computer Programs with a Graphical User Interface ► Most Visual Basic 2012 programs are event-driven programs that communicate with the user through a graphical user interface (GUI) A GUI usually consists of a window, containing a variety of objects ► An event is an action that the user initiates and causes the program to perform a type of processing in response

1 Chapter 1: Introduction to Visual Basic 2012 Programming13 Event-Driven Computer Programs with a Graphical User Interface ► For example: The user enters the account number in the Account Number box The user clicks the Display Account Balance button The user clicks the Reset Window button to clear the text boxes and prepare the user interface for the next account number

1 Chapter 1: Introduction to Visual Basic 2012 Programming14 Input Operation

1 Chapter 1: Introduction to Visual Basic 2012 Programming15 Output Operation

1 Chapter 1: Introduction to Visual Basic 2012 Programming16 Basic Arithmetic Operations ► In many programs, arithmetic operations are performed on numeric data to produce useful output Addition Subtraction Multiplication Division

1 Chapter 1: Introduction to Visual Basic 2012 Programming17 Logical Operations ► Computers, through the use of programs, can compare numbers, letters of the alphabet, and special characters ► The program will perform a processing task, based on the result of the comparison ► Logical operations: Comparing to determine if two values are equal Comparing to determine if one value is greater than another value Comparing to determine if one value is less than another value

1 Comparing: Equal Condition Chapter 1: Introduction to Visual Basic 2012 Programming18

1 Comparing : Equal Condition Chapter 1: Introduction to Visual Basic 2012 Programming19

1 Chapter 1: Introduction to Visual Basic 2012 Programming20 Comparing: Less Than Condition

1 Chapter 1: Introduction to Visual Basic 2012 Programming21 Comparing: Greater Than Condition

1 Chapter 1: Introduction to Visual Basic 2012 Programming22 Saving Software and Data ► When you develop and write a program, it must be saved on a disk ► When you want the program to run, you can cause the program to load into RAM and execute ► The program you write also can save data Banking applications must save account data ► In most cases, data is stored in a database Collection of data organized in a manner that allows access, retrieval, and use of that data

1 Chapter 1: Introduction to Visual Basic 2012 Programming23 Visual Basic 2012 and Visual Studio 2012 ► Each program statement causes the computer to perform one or more operations ► The developer must follow the syntax, or programming rules, of the programming language precisely ► Most developers use a tool called Visual Studio 2012 to write Visual Basic 2012 programs ► Visual Studio 2012 is a type of integrated development environment (IDE) Provides services and tools that enable a developer to code, test, and implement a single program or series of programs

1 Chapter 1: Introduction to Visual Basic 2012 Programming24 Visual Basic 2012 and Visual Studio 2012

1 Chapter 1: Introduction to Visual Basic 2012 Programming25 Programming Languages ► Visual Basic Programming language that allows developers to easily build complex Windows and Web programs, as well as other software tools Based on the BASIC language ► C++ Derivative of the programming language, C ► Visual C# Synthesis of the elegance and syntax of C++ with many of the productivity benefits enjoyed in Visual Basic ► JavaScript Open source client-side scripting language ► Visual F# Multipurpose language known for its math-intensive focus

1 Chapter 1: Introduction to Visual Basic 2012 Programming26.NET Framework 4.5 ►.NET technologies and products were designed to work together to allow businesses to connect information, people, systems, and devices through software ► The.NET Framework provides tools and processes developers can use to produce and run programs Most recent version is.NET Framework 4.5

1 Chapter 1: Introduction to Visual Basic 2012 Programming27.NET Class Library ► A class is a named group of program code A button is an example of a class ► A class library stores the class and makes the class available to all developers who need to use it

1 Chapter 1: Introduction to Visual Basic 2012 Programming28.NET Class Library ► A button created from a class is called an object, or sometimes an instance of a class ► The process of creating a Button object from the Button class is called instantiation ► Rapid application development (RAD) refers to the process of using prebuilt classes to make application development faster, easier, and more reliable

1 Chapter 1: Introduction to Visual Basic 2012 Programming29 ADO.NET 4.5 ► ADO.NET 4.5 (ActiveX Data Objects) provides the functionality for a program to perform four primary tasks when working with a database: Get the data Examine the data Edit the data Update the data

1 Chapter 1: Introduction to Visual Basic 2012 Programming30 ASP.NET 4.5 ► Allows developers to use Visual Studio 2012 to build powerful, sophisticated Web applications ► Almost all.NET framework objects are available in ASP.NET 4.5 ► Easy to deploy a Web application on a Web server

1 Chapter 1: Introduction to Visual Basic 2012 Programming31 Microsoft Intermediate Language (MSIL) and Common Language Runtime (CLR) ► Program compilation translates programming statements into instructions that can be understood by the computer ► Program compilation for a Visual Basic 2012 program creates a set of electronic code expressed in an intermediate language called the Microsoft Intermediate Language (MSIL) ► When the program is executed, a portion of.NET 4.5 called the Common Language Runtime (CLR) reads the MSIL and causes the actual instructions within the program to be executed

1 Chapter 1: Introduction to Visual Basic 2012 Programming32 Microsoft Intermediate Language (MSIL) and Common Language Runtime (CLR)

1 Chapter 1: Introduction to Visual Basic 2012 Programming33 Types of Visual Basic 2012 Applications ► Windows application Program will run on a computer or other device that supports the Windows GUI ► Windows Store app Designed to run on Windows 8 computers and mobile devices ► Web application Uses ASP.NET 4.5 and runs on a Web server

1 Types of Visual Basic 2012 Applications ► Office application Automates and manipulates documents created using Microsoft Office 2010 and Office 2013 ► Database application Written using ADO.NET 4.5 to reference, access, display, and update data stored in a database ► Other types of applications include console applications, classes for class libraries, certain controls to use in Windows applications, Web services, and device-specific applications Chapter 1: Introduction to Visual Basic 2012 Programming34

1 Chapter 1: Introduction to Visual Basic 2012 Programming35 Summary ► Understand software and computer programs ► State the role of a developer in creating computer programs ► Specify the use of a graphical user interface and describe an event-driven program ► Specify the roles of input, processing, output, and data when running a program on a computer ► Describe the arithmetic operations a computer program can perform

1 Chapter 1: Introduction to Visual Basic 2012 Programming36 Summary ► Explain the logical operations a computer program can perform ► Define and describe the use of a database ► Identify the use of a computer programming language in general, and Visual Basic 2012 in particular ► Explain the use of Visual Studio 2012 when developing Visual Basic 2012 programs ► Specify the programming languages available for use with Visual Studio 2012

1 Chapter 1: Introduction to Visual Basic 2012 Programming37 Summary ► Explain the.NET 4.5 Framework ► Explain RAD ► Describe classes, objects, and the.NET Framework 4.5 class libraries ► Explain ADO.NET 4.5, ASP.NET 4.5, MSIL, and CLR ► Specify the types of Visual Basic 2012 applications

Microsoft Visual Basic 2012 CHAPTER ONE COMPLETE Introduction to Visual Basic 2012 Programming