Introductions
This week's lab has two different goals:
Activities A, B, and C will help you work on Goal 1. In these activities you will make simple cartoon bubbles using the graphics methods and the drawString() method you worked with during Lab 08. Each Activity will create just a little more useful cartoon bubble than the activity before that. Of course, often times "more useful" means a little more complex code. You should absolutely feel free to use the results of these activities when you work on PA05.
Activity D will help you work towards Goal 2. In this activity you will look at a series of very simple methods containing loops that count and print. Your goal is to predict what the end result will be before you write the code and find out if you were correct.
You should be able to finish this lab in the 2 hours provided. If you do, you should submit your paperwork to Mike who will collect it for me.
If you do NOT finish, you are expected to work on this outside of lab. Your paperwork should be submitted to my mailbox prior to 4:00 PM on Friday, March 9th.
Write a method called drawBubble() which takes no parameters. This method should draw a "cartoon talk" bubble over the head of a person.
or 
This should be written for a specific picture (such as one of the photos from Lab07) and should contain some text that this person might say.
[SIG 1] : Demonstrate the no parameter version of drawBubble() for a TA.
Write another method called drawBubble(), but this one should take two parameters - both ints. These ints should represent an x and a y coordinate where the cartoon bubble would be drawn.
In other words, this method could be used to place your cartoon bubble on ANY picture, and the bubble could be repositioned so that it was coming from different people.
[SIG 2] : Demonstrate the two parameter version of drawBubble() for a TA.
Write another method called drawBubble(), but this one should take FIVE parameters - four ints followed by a String. The first two ints should be the x, and y coordinates as you did in Activity C. The second two parameters should be the height and width of the overall bubble. The String should represent what text should be inside of the bubble.
In other words, this method could be used to place your cartoon bubble on ANY picture and making the person say ANYTHING we wanted, and in a way that the bubble is the "right" size"
[SIG 3] : Demonstrate the five parameter version of drawBubble() for a TA.
Problems 8.6 - 8.15 in your textbook (pages 289-292) contain 10 VERY simple methods named test1() through test10(). Each of these methods contains a while loop, one or more variables, and a print statement.
For each of these methods carefully look at the code and predict what will happen when you execute the code. I don't care if you are right or wrong (well, obviously I want you to be right, but you can learn a lot from being wrong) so please take the time to look at the code carefully and record your honest prediction about what will happen when you run the code.
You do not need to use the editor panel and an existing class to test your predictions (and in fact should not). Instead, after you have made your prediction, simply enter the method at the interaction pane. When you are done, type the name of the method and observe the results that follow. For example, when I typed in test1() in the interactions pane, it looked something like this:
