What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending.

Slides:



Advertisements
Similar presentations
Driving Test 1 Marking Scheme Focus on five areas to pass driving test 1.
Advertisements

VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
The Web Warrior Guide to Web Design Technologies
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Using the Visual Basic Editor Visual Basic for Applications 1.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
 At the end of this class, students are able to  Describe definition of input devices clearly  List out the examples of input devices  Describe.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
Visual Basic Chapter 1 Mr. Wangler.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
CPSC203 Introduction to Computers Lab 69 By Jie Gao.
.NET Library Objects So far we have looked at the following objects in learning about ASP.NET: Controls Used to control the screen / interface and gather.
Chapter 1: Introduction to Computers and Programming.
Welcome to CIS 083 ! Events CIS 068.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
A little PHP. Enter the simple HTML code seen below.
Variables "There are 10 kinds of people in the world today – those who understand binary and those who don't!” Unknown.
Computer Components Checklist There are many parts that work together to make a computer work.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Lecture 5: Using Computers: Important Ideas Tonga Institute of Higher Education IT 141: Information Systems.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Learning Objective The students should be able to: a. state the definition of software b. state the usage of software c. list different types of software.
7 1 User-Defined Functions CGI/Perl Programming By Diane Zak.
1 C++ Programming Basics Chapter 1 Lecture CSIS 10A.
3.9 to  Also refer to as Program  Contains set of instructions that tells the computer how to perform specific task.  Each line of code is referred.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
Basic Systems and Software. Were we left off Computers are programmable (formal) machines. Digital information is stored as a series of two states (1.
Introduction Chapter 1 8/31 & 9/1 Imagine! Java: Programming Concepts in Context by Frank M. Carrano, (c) Pearson Education - Prentice Hall, 2010.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Event Handling Tonga Institute of Higher Education.
Variables Continued In the last session we saw how variables are objects that allow us to store values in the RAM of the computer In this session we shall.
2c – Textboxes and Buttons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Introduction Chapter 1 1/22/16. Check zyBooks Completion Click on the boxes for each section.
Oracle10g Developer: PL/SQL Programming1 Objectives Named program units How to identify parameters The CREATE PROCEDURE statement Creating a procedure.
PHP Form Processing * referenced from
A little PHP. Enter the simple HTML code seen below.
BARDEN JUNIOR SCHOOL How to Use School . By C Carey.
AS Level Computing 8 CHAPTER: Fundamentals of structured programming The basics of good programming Algorithms System Flow Charts Symbol Conventions Steps.
Visual Basic.NET Windows Programming
A little PHP.
A variable is a name for a value stored in memory.
PYGAME.
The CPU is the brain of the computer
Lesson Objectives Aims Key Words Interrupt, Buffer, Priority, Stack
Event-driven programming
Engineering and Debugging an App Chapter 15
Technology Literacy Hardware.
Lesson 1: Buttons and Events – 12/18
Chapter 2 Visual Basic Interface
OPERATING SYSTEMS.
Interaction of Hardware
CS285 Introduction - Visual Basic
Tonga Institute of Higher Education IT 141: Information Systems
ICT Gaming Lesson 3.
Instructor: Xiuwen Liu Department of Computer Science
Sioux City Community Schools Computer System
Presentation transcript:

What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending instructions to objects or passing data to / between Objects

Computer Components A computer is made up of many different bits of hardware and computer technology. For exampleThe Screen The Keyboard The Mouse Memory Hard disc drives Databases E Mail Systems Sound Cards

Why use Objects? Dealing directly with hardware can be very complicated We create things called objects which allow us to control the hardware without worrying about how the hardware works An object is a way of representing computer technology in such a way so that we send it instructions and data

Types of Object Web Forms and Controls Used to create the interface on – screen.NET Library Objects Ready made objects allowing us to do things such a print or send s. Variables These objects allow us to store data in the memory of the computer Custom Objects You may create your own Objects to perform a whole host of tasks

Send Password We shall look at the code for “Send me my password” to see how objects may be used to control the hardware.

Consider the Hardware Involved! The user Types their first namethe keyboard & screen Types their second namethe keyboard & screen Enters their addressthe keyboard & screen Presses the send password buttonthe mouse & screen The system Sends an to the user message & server

The Click Event In design view double click the button to view the code for the click event

Add a Break Point A break point forces the program to stop and wait so that we may see what is happening. To do this press F9. Now try and set up a new user.

Things to Note Handles btnPassword.Click Sub – End Sub Comments Block comments In-Line comments

Stepping Through the Code The program will stop at your breakpoint and wait for further instructions. Press F10 to see how the code executes.

Assignment Statement Notice how the following section of code works… In this case a text box object sends data to a variable (object)

Sending an Press F10 a few more times to see how the is sent using the and smtp server objects…

Overview of Objects Covered so far Control objectse.g. txtFirstName Used to control the interface Variable objects e.g. FirstName Used to control the RAM.NET Library objects e.g. My Used to create an e mail message

Properties and Methods Properties A property is used to control some setting of the object or to find out something about the object. e.g.txtFirstName.text Methods A method is a command to an object to do something The following lines of code contain a method…

Summary Computer programming is about telling the computer what it is we want it to do. The problem with this computer technology is that there is a huge amount of complexity involved in directly programming them. In order to get around this we use as programmers tools called objects. An object is a way of representing computer technology in such a way so that we send it instructions and data

Questions Objects can in theory be used to control any kind of technology. In these questions imagine that we had objects to control a toaster or a light bulb. 1. Write in your own words a definition of the word “object”. 2. In the case of an object, a method is a task that does something; a property tells us something about the state of the object. If we were to create an object to control a toaster via VB.NET what methods and properties might it have?

Questions 3. If a toaster object has a property called “PowerOn”, write a line of code that might turn the power on. 4. What is the = sign called that is used to transfer data around the program? 5. In the case of a light bulb object, what is wrong with the following line of VB.NET code? True = MyLightBulb.On