InClassExercise17

InClassExercise17 - > garfield--...

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

Ask a homework question - tutors are online