Unit 14 Event Driven Programming

Slides:



Advertisements
Similar presentations
What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
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.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
Alice 2.0 Introduction to Event-Driven Programming Mr. Planck.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Unit B065 – Coding a solution PREP WORK 1)Make sure you keep a work log / diary. Use the table on page 16 of the hand book as a template 2)Keep a bibliography.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Effectiveness of different designs of input and out put.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
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.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
Introduction to Windows Programming
Chapter Two Creating a First Project in Visual Basic.
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.
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.
This is a personal evaluation that was carried out after the completion of my project one and two. The next slide shows the summary of the key points.
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Digital Literacy Lesson 2. Hardware Hardware: the physical components of a computer. Includes input devices, processing devices, storage devices, and.
Week 1 Lecture 1 Slide 1 CP2028 Visual Basic Programming 2 “The VB Team” Copyright © University of Wolverhampton CP2028 Visual Basic Programming 2 v Week.
Procedural programming Procedural programming is where you specify the steps required. You do this by making the program in steps. Procedural programming.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
Chapter 4: Do-It-Yourself Designing (Designing Interfaces)
Dive Into® Visual Basic 2010 Express
Unit 14 Event Driven Programming
Visual Basic.NET Windows Programming
Canvas and Arrays in Apps
Visual Basic Code & No.: CS 218
Introduction to Event-Driven Programming
Chapter Topics 15.1 Graphical User Interfaces
Introduction to Visual Basic 2008 Programming
11.10 Human Computer Interface
Event loops 16-Jun-18.
Lesson 5-2 AP Computer Science Principles
Console and GUI Programs
An Introduction to Programming
Understand Windows Forms Applications and Console-based Applications
Lesson 1: Buttons and Events – 12/18
What is an operating system?
Explain what touch develop is to your students:
Ellen Walker Hiram College
Chapter 2 Visual Basic Interface
Event Driven Programming
VISUAL BASIC.
Number and String Operations
CIS16 Application Development Programming with Visual Basic
Use of Mathematics using Technology (Maltlab)
Event loops.
PROGRAMMING Program Development.
CS285 Introduction - Visual Basic
Windowing Push-Pull Systems
Event loops 17-Jan-19.
Event loops 17-Jan-19.
User Interfaces and Libraries
Chapter 15: GUI Applications & Event-Driven Programming
Event loops 8-Apr-19.
Lesson Objectives Aims Key Words
Explain what touch develop is to your students:
An Introduction to Programming
Event loops.
ACM programming contest
Event loops.
Event loops 19-Aug-19.
Presentation transcript:

Unit 14 Event Driven Programming Level 3 Computing Year 1 Lecturer: Julie Hodsdon

Last time Introduced the unit Introduced VB.NET’s Integrated Development Environment (IDE) Learnt features of event driven programming Created a simple form BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Unit Learning outcomes Understand the features of event driven programming Be able to use the tools and techniques of an event driven language Be able to design event driven applications Be able to implement event driven applications BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Assessment This unit is assessed by practical coursework designed around the criteria set by Edexcel. Three items of practical work (see wiki to be confirmed) Assignment 1 will be issued in October and is due before half term. BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Event Driven What does it mean? control flow of event driven programs is largely driven by external events (Mouse click, button press, keyboard input) BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Procedural Programming What does it mean? control flow is determined by the program structure (sequence, step by step) BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Today….. We will create: A simple GUI (graphical user interface) calculator A simple calculator using the console as our input /output device. Examine the code of both Evaluate the programs BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Visual Studio 2015 Let’s have a look at the IDE we will be using throughout this unit. On your computer, after you login, start Visual studio 2013 (vs2013). Then follow my video on You Tube so that you can work at the pace that suits you. https://www.youtube.com/watch?v=nHJpw-gnKlo BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Understanding the program Events Sub routines Variables BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Console based Calculator How will the program flow? Before we write the code, we need to design the application. Our design – What are the inputs. What are the outputs. What does the interface look like. You need to cater for adding, subtracting, multiplication and division between two numbers. BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Console based Calculator Task 1. In pairs – (use Microsoft word or Visio) Design a calculator application which will run in a command window. This should be in the form of a storyboard. You have 10 minutes. BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Time for a break? BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Console based Calculator In Visual Studio – create a new console project There is an example on the wiki that you can use BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Evaluation Which is better and why? (in your opinion) Task 2 – write an evaluation on - How does the console calculator compare to the GUI calculator? In terms of coding, User experience. Which is better and why? (in your opinion) You may want to use this as a start for Assignment 1 D1 BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

And finally……

Most, if not all, GUI systems and toolkits are designed to be event driven, meaning that the main flow of your program is not sequential from beginning to end. If you've never done GUI programming, this is one of the trickiest paradigm shifts. — Robin Dunn, speaking on GUI programming at OSCON2004 BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Hollywood Principle: "Don't call us; we'll call you. " Hollywood Principle: "Don't call us; we'll call you." ... You implement the interfaces, you get registered. You get called when the time is right. This requires a distinctly different way of thinking to that which is taught in introductory programming where the student dictates the flow of control. — Dafydd Rees, http://c2.com/cgi/wiki?HollywoodPrinciple The user dictates the flow of control BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming

Submit Task 1 and Task 2 to Moodle before next lesson Use the naming convention for TurnitIn as shown on the WIKI Enrolment code is: event BTEC Level 3 Year 1 - Unit 14 Event Driven lProgramming