50 likes | 255 Views
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.
E N D
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
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 atand 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/
Step #2 • Create a new ConsoleProgram subclass that asks the user to enter a temperature in Fahrenheit and prints the equivalent temperature in Celsius: 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.
Step #3 • Implement the Breakout game in stages. 1. Set up the bricks. 2. Create the paddle. 3. Create the ball and let it bounce around. 4. Detect collisions with bricks and the paddle.