SIGCSE Workshop Using the ACM Java Libraries
description
Transcript of SIGCSE Workshop Using the ACM Java Libraries
![Page 1: SIGCSE Workshop Using the ACM Java Libraries](https://reader036.fdocuments.us/reader036/viewer/2022082819/56813f35550346895da9db2e/html5/thumbnails/1.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082819/56813f35550346895da9db2e/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082819/56813f35550346895da9db2e/html5/thumbnails/3.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082819/56813f35550346895da9db2e/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082819/56813f35550346895da9db2e/html5/thumbnails/5.jpg)
The End