Mark Dixon, SoCCE SOFT 136Page 1 SOFT 136 01 – Module Introduction & Overview.

Slides:



Advertisements
Similar presentations
VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
Advertisements

Mark Dixon, SoCCE SOFT 131Page 1 15 – Object Oriented Analysis, Design, and Programming.
Mark Dixon, SoCCE SOFT 131Page 1 22 – Object Oriented Analysis, Design, and Programming.
Course Overview Sem 1 (13/14) Section 1 & 2
Mark Dixon Page 1 04 – Database Design: Forms. Mark Dixon Page 2 Session Aims & Objectives Aims –To allow easier data entry using forms Objectives, by.
Mark Dixon, SoCCE SOFT 131Page 1 22 – Visual BASIC 2005.
Mark Dixon, SoCCE SOFT 136Page 1 02 – Software Development Life-Cycle.
Mark Dixon, SoCCE SOFT 131Page 1 13 – Object Oriented Analysis, Design, and Programming.
Mark Dixon, SoCCE SOFT 131Page 1 07 – Iterative Execution.
Mark Dixon, SoCCE SOFT 131Page 1 04 – Information Processing: Expressions, Operators & Functions.
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
Mark Dixon Page 1 SOFT – Module Introduction.
Mark Dixon, SoCCE SOFT 131Page 1 SOFT – Module Introduction.
Automating Tasks With Macros
Mark Dixon, SoCCE SOFT 131Page 1 SOFT – Module Introduction & Overview.
Mark Dixon, SoCCE SOFT 131Page 1 03 – User Interface Design, and Sound and Graphics.
Mark Dixon Page 1 02 – Dynamic HTML (client-side scripting)
Mark Dixon, SoCCE SOFT 131Page 1 13 – Coursework 2 Debrief: Numbers Game.
Mark Dixon, SoCCE SOFT 131Page 1 03 – Debugging & Graphics.
Mark Dixon, SoCCE SOFT 131Page 1 04 – Information Processing: Data-types, Variables, Operators & Functions.
Mark Dixon Page 1 SOFT – Module Introduction.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Software Development Lifecycle, & User Interface Design.
Mark Dixon, SoCCE SOFT 131Page 1 SOFT – Module Introduction.
Mark Dixon Page 1 Tech – Module Introduction.
Mark Dixon, SoCCE SOFT 131Page 1 03 – Debugging, Sound, and Graphics.
Mark Dixon, SoCCE SOFT 131Page 1 SOFT – Module Introduction & Overview.
Mark Dixon Page 1 SOFT131 / Tech – Module Introduction.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Software Development Lifecycle, & User Interface Design.
Mark Dixon, SoCCE SOFT 131Page 1 05 – Information Processing: Data-types, Variables, Operators & Functions.
Instructor: Adil Ibrahim Office: 212 Ullrich Phone: ibrahima 1.
CPG 453 Course Outline Previous Text:  Microsoft Office XP – Illustrated Introductory (Enhanced Edition) by Thomson Course Technology (2003)  This.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.
02 – Client-side code: JavaScript
An Introduction to Visual Basic
M Dixon 1 Soft – Module Introduction and HTML.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
BMTRY 789 Introduction to SAS Programming Lecturer: Annie N. Simpson, MSc.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Dynamic HTML (client-side scripting)
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., Visual Basic Projects Project Structure and VB’s Programming Tools chapter TWO.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Outline Software and Programming Program Structure Tools for Designing Software Programming Languages Introduction to Visual Basic (VBA)
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Mark Dixon, SoCCE SOFT 131Page 1 05 – Variables. Mark Dixon, SoCCE SOFT 131Page 2 Admin: Test (next week) In class test –teaching week 6 –university week.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Mark Dixon Page 1 Tech – Module Introduction.
Mark Dixon Page 1 Soft – Module Introduction and HTML.
Mark Dixon Page 1 03 – Dynamic HTML (client-side scripting)
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
Mark Dixon, SoCCE SOFT 131Page 1 24 – Datatypes and Object Association.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Standard Grade Programming using VB 1 Programming Visual Basic.
Mark Dixon, SoCCE SOFT 131Page 1 04 – Information Processing: Expressions, Operators & Functions.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Dynamic HTML (client-side scripting)
Mark Dixon Page 1 03 – Dynamic HTML (client-side scripting)
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Mark Dixon, SoCCE SOFT 131Page 1 16 – Visual BASIC 6.0.
Mark Dixon Page 1 04 – Information Processing: Expressions, Operators & Functions.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
M Dixon 1 02 – Dynamic HTML (client-side scripting)
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Mark Dixon Page 1 Tech – Module Introduction.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Visual Basic Fundamental Concepts
Visual Basic Code & No.: CS 218
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
SOFT – Module Introduction
Presentation transcript:

Mark Dixon, SoCCE SOFT 136Page 1 SOFT – Module Introduction & Overview

Mark Dixon, SoCCE SOFT 136Page 2 About Me Contact Details Mark Dixon Portland Square Room B316 Availability Monday, Tuesday, Wednesday, Thursday – School of Computing Communications and Electronics (main campus) Friday – other work (usually off-campus)

Mark Dixon, SoCCE SOFT 136Page 3 Module Aims This module aims to teach you: –How to learn (self-directed) surface learning (memorisation of isolated facts) deep learning (interrelated concepts) –How to develop software: fundamental programming concepts (e.g. events, procedures) how to combine these to solve problems –How to use Visual BASIC

Mark Dixon, SoCCE SOFT 136Page 4 Module Admin Lectures and tutorials: –start at 5 minutes past the hour, and –aim to end at 5 minutes to the hour –if no lecturer - wait until 15 minutes past the hour then you may leave –Turn mobile phones off. –Ask questions or comment at any time –Feel free to talk quietly amongst yourselves –Material (slides, handouts, etc.) available 1 hour before session, on: Soft136 web-site (mdixon.soc.plymouth.ac.uk) Lectures: –Don’t come in after 15 minutes past the hour.

Mark Dixon, SoCCE SOFT 136Page 5 Module Format The module is delivered as follows: Lecture: 1 hr per week, all groups, Thursdays 13:05 – 13:55 Tutorials / Practical Session: 2 hr per week Thursdays 14:05 – 15:55 Private study (as much as it takes – typically 3 hours/week) Teaching Evaluation (timely and specific) –Student Perception Questionnaire –Continuous Informal Feedback (talk to me)

Mark Dixon, SoCCE SOFT 136Page 6 Schedule WeekStartTitleTopics and Concepts No.Date 127-SepModule introduction & overview Specifications, Objects, Controls, Properties, Methods, Events, Event handlers, Procedures, Instructions, Assignment, deep vs. surface learning 204-OctUser Interface Design Usefulness, usability, learnability, user interface design principles, incremental development, functional decomposition, verification, validation 311-OctGraphicsGrid system, graphics controls and methods (pset, line, circle). 418-OctData, Data-types, and VariablesTypes of data, data types, variable declaration & assignment 525-OctConditional execution (selection)Conditional statements (if and case statements), decision trees 601-NovIteration (repetition) Manual and automatic iteration using loops (for and while statements) 708-NovConstants, Arrays, & StructuresConstants, arrays, structures/records/user defined data types 815-NovProceduresAbstraction, procedures. 922-NovArguments/ParametersArguments/parameters, calling by value and by reference 1029-NovFunctions 1106-DecArrays of Structures & ModulesArrays of Structures, Modules/units 1213-DecPassing Parameters by ReferenceMemory addresses, pass by value, pass by reference.

Mark Dixon, SoCCE SOFT 136Page 7 Reading List 1 The following book is recommended reading: –McKeown, P; and Piercy, C (2001) Learning to program with Visual BASIC. 2nd Edition. John Wiley & Sons. ISBN

Mark Dixon, SoCCE SOFT 136Page 8 Reading List 2 Additional reading (the following are referred to occasionally, borrow from library): Pressman, R (2000) Software Engineering: a practitioner's approach. 5th edition. McGraw-Hill. ISBN: Sommerville, I (2001) Software Engineering. 6th edition. Addison- Wesley. ISBN: X. –Overview of Software Engineering: Chapter 1, especially page 4. Preece, J; Rogers, Y; Sharp, H; Benyon, D; Holland, S; and Carey, T (1994) Human-Computer Interaction. Addison Wesley. ISBN: –Direct Manipulation: Section 13.6, pages –Interface Design: Chapter 24, pages Shneiderman, Ben (1998) Designing the user interface: strategies for effective human-computer interaction. 3rd edition. Addison- Wesley. ISBN SHN

Mark Dixon, SoCCE SOFT 136Page 9 Student Background Typically wide range of prior experience A.10 years programming (professional?) B.5 years programming (professional?) C.3 years programming (professional?) D.1 year programming (learning) E.no programming Can be difficult to cater for all A B C D E number of students

Mark Dixon, SoCCE SOFT 136Page 10 Attendance Attendance is mandatory This is not a distance learning course portal is supplement (not replacement) for attending lectures and tutorials

Mark Dixon, SoCCE SOFT 136Page 11 Jobs Computer weekly

Mark Dixon, SoCCE SOFT 136Page 12 Student Feedback feedback form –filled in by students –handed in with assignment this student: –failed (low attendance, low contact with me) –did referred work (over summer) –passed

Mark Dixon, SoCCE SOFT 136Page 13 Student feedback (zoom)

Mark Dixon, SoCCE SOFT 136Page 14 Soft131 Last Year Results 56 students 19 failed initially (33%) offered 1 to 1 sessions after assignment 1 all who did this passed * only 2 students failed retakes

Mark Dixon, SoCCE SOFT 136Page 15

Mark Dixon, SoCCE SOFT 136Page 16 Session Aims & Objectives Aims –introduce you to fundamental event drive programming concepts Objectives, by end of this week’s sessions, you should be able to: –Add controls to a form –Create Event Handler Procedures to do things in response to an event of a object –Put Assignment instructions in the event handler

Mark Dixon, SoCCE SOFT 136Page 17 Example: Colour Change v1 Trigger (when)Actions (what) Click event of Red button Change background to Red Click event of Blue button Change background to Blue Double Click event of Result label Change background to White Events: –Click: user releases left mouse button on object –Double Click: mouse clicked twice

Mark Dixon, SoCCE SOFT 136Page 18 VB Environment Toolbox Properties Window Form Window Project Explorer

Mark Dixon, SoCCE SOFT 136Page 19 Controls - ToolBox Design screens (forms) using controls from the Toolbox: –Picture box: display diagrams & images –Label: display text that user cannot change –Textbox: allow user to enter text –Command button: allow user to initiate actions

Mark Dixon, SoCCE SOFT 136Page 20 Properties Label –Name: used to identify control (not visible to user) –Caption: the text displayed on the label –BackColor: the label's background colour Command Button –Name: used to identify control (not visible to user) –Caption: the text displayed on the button Text Box –Name: used to identify control (not visible to user) –Text: the text typed in by the user

Mark Dixon, SoCCE SOFT 136Page 21 Event Handler Procedures Option Explicit Private Sub btnBlue_Click() Me.BackColor = vbBlue End Sub Private Sub btnRed_Click() Me.BackColor = vbRed End Sub Private Sub lblResult_DblClick() Me.BackColor = vbWhite End Sub Event Handler Procedure How many Event Handler Procedures are there? 3

Mark Dixon, SoCCE SOFT 136Page 22 Option Explicit Private Sub btnBlue_Click() Me.BackColor = vbBlue End Sub Private Sub btnRed_Click() Me.BackColor = vbRed End Sub Private Sub lblResult_DblClick() Me.BackColor = vbWhite End Sub Objects & Events Object Events

Mark Dixon, SoCCE SOFT 136Page 23 Assignment Instructions Assignment: Object.Property = Value Me.BackColor = vbRed Option Explicit Private Sub btnBlue_Click() Me.BackColor = vbBlue End Sub Private Sub btnRed_Click() Me.BackColor = vbRed End Sub Private Sub lblResult_DblClick() Me.BackColor = vbWhite End Sub

Mark Dixon, SoCCE SOFT 136Page 24 Example: Colour Change v2 Trigger (when)Actions (what) Click event of Hello button Put word 'Hello' in lblResult Label Click event of Bye button Put word 'Bye' in lblResult Label Click event of Red button Change background to Red Click event of Blue button Change background to Blue Click event of Move button Move text and background colour to Result2 Double Click event of Result label Change background to White

Mark Dixon, SoCCE SOFT 136Page 25 Tutorial Exercise: Colour Change LEARNING OBJECTIVE: to understand objects, events, properties, and event handler procedures, TASK 1: Get the Colour Change v1 example (from the lecture) working. (the code is provided) TASK 2: Add another button (you choose the colour). (You will need to work out what code to use. Use the code provided as inspiration please ask for advice/guidance if you need it) Task 3: Get the Colour Change v2 example (from the lecture) working. (You work out the code)