1620_lecture_3 - ITEC1620 Object-Based Programming Lecture...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
ITEC1620 Object-Based Programming Lecture 3 Iconic Programming II
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Sequence Standard operation of a computer Actions are performed in sequence First action Second action Last action Program runs same way each time
Background image of page 2
3 Actions Action Manipulate data Iconic Programmer Declare Assign Output
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Declarations A computer needs to allocate storage space for all data that it manipulates Declaration gives a meaningful name to the data element/storage space Iconic Programmer Only integer data elements Give name in text box
Background image of page 4
5 Assignments Once the computer has a storage space, it can store/change data in that space Iconic Programmer Random value Result of mathematical expression User input
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Mathematical Expressions value = value +1 (math) The value is equal to the value plus one Impossible mathematically value = value + 1 (computers) The storage space for value will become the previous contents plus one Actions: perform math, perform storage
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2009 for the course ITEC 1620 taught by Professor Chen during the Fall '09 term at York University.

Page1 / 24

1620_lecture_3 - ITEC1620 Object-Based Programming Lecture...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online