0911 - Introduction to Programming Languages and Techniques...

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

View Full Document Right Arrow Icon
Introduction to Programming Languages and Techniques Java for the Experienced
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 Hours This Week Brent’s office hours (normally 2-4 on Friday) are canceled this week Prof. Pierce’s office hours this afternoon (normally 3-4:30) will run from 3 to 5 9/11/09 CIS 120 2
Background image of page 2
9/11/09 CIS 120, Fall 2009 Tentative Exam Dates Notify me of conflicts before the exams! 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
9/11/09 CIS 120 4 First homework assignment Available from course web page now Due Wed, Sep 10, at 11 AM
Background image of page 4
9/11/09 CIS 120 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
Submission Submission scripts will be ready soon Auto-grader available now on Eniac Points awarded based on how many tests your code passes. .. 9/11/09 CIS 120 6
Background image of page 6
9/11/09 CIS 120 7 CIS120 Homework 01 Test Results ----------------------------------- Question 1: Cell Neighbors ---------------------------------- Test - Sample Interactions: Passed - 4.0 points Test - Checking unexplored neighbors: Passed - 5.0 points Test - Unexplored neighbors: Edge: Passed - 5.0 points Test - Unexplored neighbors: Edge II : Passed - 5.0 points Test - Unexplored neighbors: Corner I: Passed - 4.0 points Test - Unexplored neighbors: Corner II: Passed - 5.0 points ----------------------------------- Raw score for this problem: 28.0/28.0 Excellent job ... Question 4: Better Exploration ---------------------------------- Test - Sample Interactions: Passed - 3.0 points Test - Corner exploration: Passed - 3.0 points Test - Double exploration: Passed - 3.0 points Test - Nonzeros: Passed - 2.0 points Test - Partially-explored areas: Passed - 2.0 points Test - Exploring islands: Passed - 3.0 points ----------------------------------- Raw score for this problem: 16.0/16.0 Excellent job Total score: 100 out of 100
Background image of page 7

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

View Full DocumentRight Arrow Icon
Any Questions? 9/11/09 CIS 120 8
Background image of page 8
BACK TO JAVA 9/11/09 CIS 120 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
DO NOT PANIC 9/11/09 CIS 120 10
Background image of page 10
9/11/09 CIS 120 11 Values and types All data values in Java have a type The type of a value determines: Memory representation Allowed operations Conversion to other types Types are program invariants catch errors
Background image of page 11

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

View Full DocumentRight Arrow Icon
9/11/09 CIS 120 12 Primitive types Values that Java knows how to operate on directly Integer ( int ) -1 42 Fractional ( floating point ) number ( float , double ) .1 3.14159 2.99792458E8 Character ( char ) 'J' ' ' Truth value ( boolean ) true false
Background image of page 12
9/11/09 CIS 120 13 Primitive numeric types Numeric types in Java are characterized by their size : how much memory they occupy Integral types Floating point types size range byte 1 byte -128: 127 short 2 bytes -32768:32767 char 2 bytes 0:65535 int 4 bytes -2147483648:2147483647 long 8 bytes smallest > 0 2 -1074 2 -149 (2-2 -52 ).2 1023 8 bytes double (2-2 -23 ).2 127 4 byte float largest size all these details are not very important right now: we’ll come back to them in CIS240. ..
Background image of page 13

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

View Full DocumentRight Arrow Icon
9/11/09 CIS 120 14 Java math is not math For all int n, is Math.abs(n) >= 0 ?
Background image of page 14
9/11/09 CIS 120 15
Background image of page 15

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

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

Page1 / 49

0911 - Introduction to Programming Languages and Techniques...

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

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