sigcse workshop using the acm java libraries

5
SIGCSE Workshop Using the ACM Java Libraries Eric Roberts Stanford University Stanford, CA SIGCSE 2007 Symposium Covington, Kentucky March 9, 2007 The ACM Java Task Force Scott Grissom Grand Valley State University Allendale, MI Robb Cutler The Harker School San Jose, CA

Upload: bjorn

Post on 07-Jan-2016

32 views

Category:

Documents


2 download

DESCRIPTION

SIGCSE Workshop Using the ACM Java Libraries. SIGCSE 2007 Symposium Covington, Kentucky March 9, 2007 The ACM Java Task Force. Eric Roberts Stanford University Stanford, CA. Scott Grissom Grand Valley State University Allendale, MI. Robb Cutler The Harker School San Jose, CA. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: SIGCSE Workshop Using the ACM Java Libraries

SIGCSE Workshop

Using the ACM Java Libraries

Eric RobertsStanford University

Stanford, CA

SIGCSE 2007 SymposiumCovington, Kentucky

March 9, 2007

The ACM Java Task Force

Scott GrissomGrand Valley State

UniversityAllendale, MI

Robb CutlerThe Harker School

San Jose, CA

Page 2: SIGCSE Workshop Using the ACM Java Libraries

Step #1 • Pick up copies of the assignment handout, the Tutorial Guide, and your sample copy of The Art and Science of Java (provided by Addison-Wesley).

• Work in teams of two on your laptop using whatever Java environment you ordinarily use. If you don’t have Java on your laptop, pair up with someone who does.

• Go to the web site for the Java Task Force materials at

and follow the links to the Demo Gallery and go to the section on “Simple applications using the ACM packages.”

• Download the hello.zip file, unpack it, and get it running.

http://jtf.acm.org/

Page 3: SIGCSE Workshop Using the ACM Java Libraries

Step #2 • Create a new ConsoleProgram subclass that asks the user to enter a temperature in Fahrenheit and prints the equivalent temperature in Celsius:

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

FahrenheitToCelsius

This program converts Fahrenheit to Celsius.Enter Fahrenheit temperature:Celsius equivalent = 100.0

212

• Change only the header line of the program so that your program extends DialogProgram and run it again.

Page 4: SIGCSE Workshop Using the ACM Java Libraries

Step #3 • Implement the Breakout game in stages.

Set up the bricks.1. Create the paddle.2. Create the ball and let it

bounce around.3. Detect collisions with bricks

and the paddle.4.

Page 5: SIGCSE Workshop Using the ACM Java Libraries

The End