|
Lab 3IntroductionWe are still learning some of the basic components of a Java file, but we have seen one very important idea - relationships! Relationships between classes will allow us the ability to have classes work together in some way. Before we have too many classes in our projects to count, we will focus on some simpler ideas and eventually put them all together to build some pretty cool stuff.. ObjectivesThe high-level objectives of this lab are to have you,
Helpful HintsRead through the entire lab before you start working, so that you know what to expect. Make sure you save your work often, and keep track of what you are expected to submit. Unless you have a fabulous photographic memory, you should expect to have to look back at previous labs if you do not remember how to do certain things. ReadingMake sure you have read chapter 3 of the book before coming to lab. Also make sure you have reviewed your lecture notes. Lab set-up tasksAt your lab session your teaching assistant will briefly discuss how to carry out each of the set-up tasks below. She or he will also be available to answer questions you might have. These are things that you must do that you learned how to do in previous labs. If you don't remember how to do any of these tasks, refer to Lab 1. Step 1: Log inStep 2: Open EclipseStep 3: Make sure you have the DrJava interactions pane visibleStep 4: Make sure you can see the connections to the code repositoriesThese are things that you must do that you learned how to do in previous labs. If you don't remember how to do any of these tasks, refer to Lab 2. Step 5: Check out Lab3 project from LabSkeletons repository
Lab Assignment (To be completed in Lab and checked by TA for attendance)In the DrJava interactions pane you will duplicate some of the code that was demonstrated in class. To get full credit for this exercise, you should do the following: 1) Create a 2) Add two or more Once you have completed this task, leave the Terrarium window running and then ask your TA to come over and view your interactions pane and the Terrarium winodw. The TA will be giving you credit for completing this part of the assignment, thereby giving you credit for attendance in lab this week. Lab Assignment (To be completed and submitted - can be finished in lab or may have to be finished outside of lab time)Use the Dr. Java interactions pane to test out your ideas for the creation of the final program. In the After you have put at least one After you feel confident in working with the You will fill in the code for the class Using Green to Create RelationshipsOpen the package Finish the Code for MyBouncingBallWorldYou should now make sure that the code you wrote meets the specifications given above. In order to see that your world looks the way you want, you can simply create an instance of it using the DrJava Interactions pane. What you hand inWhen you are finished, you need to export your solution from the Eclipse environment so that you can submit it. Follow the steps described in Lab 2 to do this. Your submission must contain your completed Now you can submit the resulting jar file, Lab3.jar. If you do not remember how to do this, refer back to the instructions in Lab 2. Due datesThe due dates for the lab are summarized below. To check that your lab was submitted, you can always refer back to the Submit Inspector on the Resources page of the website. After you have entered your user name, your submissions will be shown.
|