tag ▪ 2011 cis 3260 introduction to programming using java
TRANSCRIPT
TAG ▪ 2011
CIS 3260
Introduction toProgramming
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
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
4 TAG ▪ 2011
Looking ahead (today)
• Syllabus• History of computing• Intro to objects• Types
5 TAG ▪ 2011
Syllabus Review
6 TAG ▪ 2011
GIYF
7 TAG ▪ 2011
Cite everything
8 TAG ▪ 2011
Semester map
Foundation OOP Implementation
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.
10
TAG ▪ 2011
Words to know
• Bit, Byte• Binary, Hexadecimal• Complied language, Interpreted language
• IDE
• Object• Class, Attribute, Method/Function• Main
This is easy!
11
TAG ▪ 2011
What is an object?
12
TAG ▪ 2011
An object is a thing.
It is a certain kind of thing.
It can be described.
It may do something.
13
TAG ▪ 2011
An object is a thing.
It has a type.
It has attributes.
It may have methods.
Practice
15
TAG ▪ 2011
Car
VINMakeMileageNumberOfDoors
Drive( )BreakDown( )ChangeOil( )
Person
FirstNameLastNameDateOfBirth
CalculateAge( )PayBills( )
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) *
TAG ☆ 2011
Other TypesName Size Range
boolean true or false
char 2 bytes (16 bits) 2-byte unicode text
String variable
TAG ☆ 2011