1620_lecture_7 - 10 Program public class FibonacciNumbers...

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

View Full Document Right Arrow Icon
ITEC3620 Object-Based Programming Lecture 7 Programming in Java
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 Programming Basics Sequence, Branching, Looping Primitive datatypes Mathematical operations 1940’s level computer 1940’s level computation Math and Engineering
Background image of page 2
3 Program 1 Factorials 1 = 1 1 * 2 = 2 1 * 2 * 3 = 6 1 * 2 * 3 * 4 = 24 1 * 2 * 3 * 4 * 5 = 120
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 Programming A computer is a machine that processes data What are the data? What are the processes?
Background image of page 4
Data 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
Processes 6
Background image of page 6
Program public class Factorials { public static void main (String[] args) { } } 7
Background image of page 7

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

View Full DocumentRight Arrow Icon
8 Program 2 Fibonacci numbers 1 + 1 = 2 1 + 2 = 3 2 + 3 = 5 3 + 5 = 8 5 + 8 = 13
Background image of page 8
Data 9
Background image of page 9

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

View Full DocumentRight Arrow Icon
Processes
Background image of page 10
Background image of page 11

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

View Full DocumentRight Arrow Icon
Background image of page 12
Background image of page 13

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

View Full DocumentRight Arrow Icon
Background image of page 14
Background image of page 15

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

View Full DocumentRight Arrow Icon
Background image of page 16
Background image of page 17
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 10 Program public class FibonacciNumbers { public static void main (String args) { } } 11 12 Program 3 Prime numbers 2 yes 3 yes 4 no 5 yes 6 no Data 13 Processes 14 Program public class PrimeNumbers { public static void main (String args) { } } 15 Review A computer is a machine that processes data Data Every piece of information Many interim pieces of data Processes Restricted to Sequence, Branch, Loop Must learn to think in these structures 16 Readings and Assignments 17...
View Full Document

This note was uploaded on 04/06/2010 for the course INFORMATIO ITEC 1620 taught by Professor Stephenchen during the Winter '10 term at York University.

Page1 / 17

1620_lecture_7 - 10 Program public class FibonacciNumbers...

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

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