tag ▪ 2011 cis 3260 introduction to programming using java

18
TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

Upload: lucas-fletcher

Post on 02-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

TAG ▪ 2011

CIS 3260

Introduction toProgramming

Using Java

Page 2: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

2 TAG ▪ 2011

Tom Gregory

• Center for Process Innovation @ GSU• Soccer Referee• Boy Scout leader• B.S. Computer Science• MBA• Developer

USSF Grade 16

heh

Page 3: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

3 TAG ▪ 2011

Tom GregoryCompiled Languages

Interpreted (Scripting)Languages

Special PurposeLanguages

C/C++JavaC#

(VB)

Object PascalAssembly

PHPRubyJavascriptFlash ActionscriptCold FusionBashVB/VBA

Scheme (Lisp)

BASIC

SQL

HTML, XML, XSLTCSS

Page 4: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

4 TAG ▪ 2011

Looking ahead (today)

• Syllabus• History of computing• Intro to objects• Types

Page 5: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

5 TAG ▪ 2011

Syllabus Review

Page 6: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

6 TAG ▪ 2011

GIYF

Page 7: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

7 TAG ▪ 2011

Cite everything

Page 8: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

8 TAG ▪ 2011

Semester map

Foundation OOP Implementation

Page 9: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

9 TAG ▪ 2011

My goals

• Get you to think like a programmer• Help you learn more• Make it as easy/fun as possible

Teach more,

But make it easier.

Page 10: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

10

TAG ▪ 2011

Words to know

• Bit, Byte• Binary, Hexadecimal• Complied language, Interpreted language

• IDE

• Object• Class, Attribute, Method/Function• Main

This is easy!

Page 11: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

11

TAG ▪ 2011

What is an object?

Page 12: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

12

TAG ▪ 2011

An object is a thing.

It is a certain kind of thing.

It can be described.

It may do something.

Page 13: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

13

TAG ▪ 2011

An object is a thing.

It has a type.

It has attributes.

It may have methods.

Page 14: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

Practice

Page 15: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

15

TAG ▪ 2011

Car

VINMakeMileageNumberOfDoors

Drive( )BreakDown( )ChangeOil( )

Person

FirstNameLastNameDateOfBirth

CalculateAge( )PayBills( )

Page 16: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

TAG ☆ 2011

Primitive TypesName Size Range

byte 1 byte (8 bits) -128 to 127

short 2 bytes (16 bits) -32,768 to 32,767

int 4 bytes (32 bits) -2,147,483,648 to 2,147,483,647

long 8 bytes (64 bits) –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

float 4 bytes (32 bits) *

double 8 bytes (64 bits) *

Page 17: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

TAG ☆ 2011

Other TypesName Size Range

boolean true or false

char 2 bytes (16 bits) 2-byte unicode text

String variable

Page 18: TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java

TAG ☆ 2011