20110912

20110912 - Week 2 (time flies) Object-Oriented Programming...

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

View Full Document Right Arrow Icon
Office of Instructional and Research Week 2 (time flies…) Object-Oriented Programming ITI 202
Background image of page 1

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

View Full DocumentRight Arrow Icon
Office of Instructional and Research This week: Monday Review: Numbers and Strings More on Primitive Variables: Booleans Conditional Statements Loops Wednesday Quiz! Using a debugger Up to our ankles in coding: Small Programs Team Assignments
Background image of page 2
Office of Instructional and Research Announcements Winter weather and Sakai ate my homework! Coding and More Eclipse… … coming soon. 1 st Quiz… Variables and Loops on Wedensday.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Office of Instructional and Research Announcements (cont.) Week 2 Blog – Loops in Everyday Life An exercise that I have found helps me understand things the way the computer thinks is to take a look at the world around us and try to put activities into "computer speak". Try to find five activities that you perform on a daily basis that would qualify as conditional statements or loops and put them into pseudo-code "compute speak“. For example: While (thirsty) { take a sip of water } Blogs should be submitted by 11:59pm, Sunday Sept. 18th.
Background image of page 4
Office of Instructional and Research Review - Java’s keywords abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for if goto implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while
Background image of page 5

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

View Full DocumentRight Arrow Icon
Office of Instructional and Research Java’s keywords for the moment abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for if goto implements import instance of int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while
Background image of page 6
Office of Instructional and Research Review – Keywords for the Moment Defined
Background image of page 7

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

View Full DocumentRight Arrow Icon
Office of Instructional and Research Limits of integers π = 3!! Hence floating point variables float pi_like = 3.14; initialization and declaring are two different events! float a = 1.2, b = 2.3; float c = b; float d = b * c; int m = 2; // int not a float m * pi_like; //What happens?
Background image of page 8
Office of Instructional and Research char and String char holds one character char favorLetter = ‘a’; // notice the ‘’ – used for literals Strings - our first objects. Unlike strings in other languages Strings are immutable (like the keyword final) String a = “2b or “; // notice the “” – used for literals String b = “-2b”; String c = a + b;
Background image of page 9

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

View Full DocumentRight Arrow Icon
Office of Instructional and Research Review (continued) What we’re working with for this month: Integer Values: int Floating-Point Values: double Strings Key points Primitive variables can only hold so much Math with integer variables uses remainders not fractions Math with floating point is close but not perfect
Background image of page 10
Office of Instructional and Research Questions? Problems?
Background image of page 11

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

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/20/2012 for the course 547 202 taught by Professor Crosbie,w during the Fall '08 term at Rutgers.

Page1 / 45

20110912 - Week 2 (time flies) Object-Oriented Programming...

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

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