IMAT1604 Visual Web Development. What is an Object Anyway? What is a word? Think about the following word… Shop What springs to mind?

Slides:



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

Using the website (click the link above), add the needed information to this PowerPoint. Save your presentation to your files as “programs.ppt” You may.
Some computer fundamentals and jargon Memory: Basic element is a bit – value = 0 or 1 Collection of “n” bits is a “byte” Collection of several bytes is.
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Chapter 1 - An Introduction to Computers and Problem Solving
Basics of Computer Programming Web Design Section 8-1.
CS 61C L02 Number Representation (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Python Programming Chapter 2: Variables, expressions, and statements Saad Bani Mohammad Department of Computer Science Al al-Bayt University 1 st 2011/2012.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
ASP.NET Programming with C# and SQL Server First Edition
Key Applications Module Lesson 12 — Word Essentials
Adding Automated Functionality to Office Applications.
9-Aug-15 Vocabulary. Programming Vocabulary Watch closely, you might even want to take some notes. There’s a short quiz at the end of this presentation!
Word Lesson 16 Working with Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
Memory techniques: 1 Chunking  Break your work down into sentence ‘chunks’  Take one paragraph and count the number of sentences  Draw that number of.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Introduction to Python
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #001 (January 9, 2015)
Rote Learning of the Week "A variable is a named section of RAM that stores data of a specific data type"
Introduction to problem solving. Introductory Discussion? What problems are you faced with daily? Do you think a computer can be designed to solve those.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
PHP meets MySQL.
Solving Linear Equations = 13 What number would make this equation true? That is, what value of would make the left side equal to the right side?
By the end of this session you should be able to...
How Computers Work … and how you can work them. Art 315 Lecture 03 Dr. J Parker Fall 2010.
1 CPRE210: Introduction to Digital Design Instructor –Arun K. Somani –Tel: – –Office Hours: MWF 10:00-11:00 Teaching Assistant.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Introduction to programming in the Java programming language.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
22 November Databases. Presentations Tega: news 1954 Prediction.
Objects Methods and Instantiation. Programming Programming is the act of writing instructions that tell a computer how to do something. This module is.
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.
Using the website (click the link above), add the needed information to this PowerPoint. Save your presentation to your files as “programs.ppt” You may.
INSTRUCTOR: JOAN RABIDEAU Unit 5 ~ CS119 is the fastest way to reach me to get assistance and support! AIM – joanlrabideau.
Use Flowchart modeling to design and create an interactive quiz to be run on Powerpoint. Start Question Click to start the quiz Correct Incorrect, try.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Review of HTML and CSS A (very) brief review of some key fundamentals to be aware of in IT-238.
FUNCTIONS. Midterm questions (1-10) review 1. Every line in a C program should end with a semicolon. 2. In C language lowercase letters are significant.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
IMAT1604 Visual Web Development. About me… Matthew Dean (Or Google mjdean dmu)
Objects Allow us to represent and control the computer technology Use methods to make the object do something Use properties to find out and change the.
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
Lesson 1 - Sequencing.
Introducing Instructions
Basics of Computer Programming
Microsoft Visual Basic 2005 BASICS
Introduction to Python
IGCSE 6 Cambridge Effectiveness of algorithms Computer Science
Error Correcting Code.
Variables Data Types and Assignment
Basics of Computer Programming
Basics of Computer Programming
Basics of Computer Programming
Programming Vocabulary.
Personalize Practice with Accelerated Math
What is an Object Anyway?
Variables Data Types and Assignment
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Variables Data Types and Assignment
Ch. 1 Vocabulary Alice.
Hardware is… Software is…
Presentation transcript:

IMAT1604 Visual Web Development

What is an Object Anyway? What is a word? Think about the following word… Shop What springs to mind?

A Specific Shop

The act of shopping…

Creating Instructions A word on its own isn’t much use to us however when we combine it with other words we can create instructions. “I want you to go to the shop and get me a tin of peas.”

Words are Really Just Symbols What is this?

What if we add other symbols? Traffic lights and words on a page are all the same they are all symbols that we look at and assign meaning.

What is Programming? Programming is about using words and symbols to communicate with a Computer As with our example above we use words / symbols to create instructions or functions that the computer will follow and perform some task. Functions are organised into classes – text files

Who is this? More to the point why is she so irritating? We need to use the right words correctly

Most of us end up feeling more like this...

The Importance of Vocabulary “Shop, street, road, post box, lamp post, post code, house, flat, house number, left, right ahead, distance, time, street sign, landmark.” These words make up the vocabulary of the streets and roads. We are familiar with these words and can easily make up instructions (functions) using these words. “You want to walk down that street for 10 meters then turn left at the post box. You will then see a sign to the railway station. Follow that sign for 5 meters and the shop is on the left.”

Computer Programming Introduces a new Vocabulary “Class, object, assignment, sequence, variable, RAM, parameter, data type, function, method, property, selection, sequence, integer, string.”

The Computer Programmer The person who knows how to write the correct words / symbols to tell the computer what to do Computers copy and process data Data is made of binary numbers Nobody really likes binary We need a set of commands to control data

First Look at Some C# Code What is wrong with this?

The Problem Computers are really fussy Spotting errors can be difficult at first This gets easier with practice Take a look at the following… Int32 Name;- Variable Name();-Function “Name”-A string of letters.Name-A method or a property (Probably a property) //Name-A comment (Name)-A parameter

New Terms to Understand Function Method Property Class Instantiation Object

Functions “A function is sequence of words and symbols that instruct the computer to perform a single action on some data well.”

Methods and Properties Method A function that acts on the data in some way E.g. Multiply Property A function that allows us to find out something about the data or to set some aspect of it. E.g. Count (This will be confusing at first!)

Classes A class is a text file that contains related functions making them easier to manage Classes are like recipe books Recipe books dedicated to specific regions Classes dedicated to specific sets of functionality A student manager class might contain… Methods.AddStudent.UpdateStudent.DeleteStudent Properties.Count.HighestStudentGrade

So what is an Object Anyway? An object may be thought of as simply a word that means something to the computer The object in this code is MyStudents Made up by the programmer Associates the word with the class file clsStudents Allowing us to access the function/method AddStudent

Instantiation Stuff in green called comments Create an object MyCompter referencing the code in the class file clsComputer Invokes the function/method TurnOff Instantiation is the act of creating an object

Summary Programming is the act of writing lists of words that control the data in the system We need a system for writing lists of instruction for the computer that makes reasonable sense to human beings We also have some key words for you to start getting to grips with… FunctionA function is sequence of words that instruct the computer to perform a single action on some data well PropertyA property is a function that tells us about or sets some aspect of the data MethodA method is a function that changes the data in some way ClassA class is a collection of related functions in a text file ObjectAn object is a word that references the code in the associated class InstantiationThe process of linking an object to a class