InClassExercise17

InClassExercise17 - > garfield" |" | |:|/O:| |:|...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS112: In-class Exercise 17 A command loop. 1. Copy the InClass17-commandloop folder from the usual locations. 2. Open the project using BlueJ. 3. Edit the source file for Interaction . 4. Program a run() method that will execute a command loop that accepts the commands garfield, homer, quit. Here is a sample execution (user input is in bold ). ****************************************** ** A A A ** ****************************************** ** Welcome to the Ascii Art Application ** Please enter a command (garfield, homer, or quit):
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: > garfield-- --.:" | .:'" |-- ___ ___ -/:. / .\ /. \ .\ |:|. ;\___/O\___/ :| |:|. | `__|__' | .| |:|. \_, ,_/ / \______ |__/ |:. \ /.:,| | \ /.:,.| | \ |::. . \_;_\-; | _____|::. . .::| | / ----, .::/__, /__, \_______|,. ..____;_;_|. ./_;_| Please enter a command (garfield, odie, homer, or quit): > quit ** Thank you & bye! *********************** 5. The private methods drawGarfield() and drawHomer() are already programmed for you. 6. Test your program. When done, show your work to Prof. Yuen...
View Full Document

This lab report was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.

Ask a homework question - tutors are online