The objectives of this lab are to further acquaint you with the resources available to help you learn and to give you experience with many of the topics covered in Chapter 3 of your book.
Take a clean sheet of paper. In the upper right corner put your name, your esus e-mail address, and your lab time. Then answer the following questions.
What is your TA's name and the Consultants names (if you can't remember, don't be afraid to ask)?
Bring up a browser and ....
Visit http://www.wiley.com/college/horstmann with your browser. What is this site about?
Find the student resources on this site corresponding to your textbook. List the resources that are available to the student.
If you are among the many learners new to Java in CS 160, do this part.
Download the purse program found in chapter three of your book from the horstmann web site. Create a new project in BlueJ named purse. Copy the Purse and PurseTest classes into BlueJ classes of the same names (get rid of the outline stuff that BlueJ automatically puts into classes. Compile and run this program. Then do the following.
One
Two
Three
To Turn In
Turn your sheet in to the TA. Then read the next paragraph.
If you get done with parts One through Three, use the rest of your time to review for the exam. For example, you can do these exercises in your book: R31.R3.6, R3.8, and R3.16. You can use the Windows built in calculator to check your results for R3.16 or write a simple class with a public static void main method to print the results of these expressions. You may also ask the helpers other questions that you might have about Java in your review..
If you are an advanced Java programmer or you just think the first exercise is too easy, do these two parts.
One
Exercises R31.R3.6, R3.8, and R3.16. You can use the Windows built in calculator to check your results for R3.16 or write a simple class with a public static void main method to print the results of these expressions. In each case, write down the answer you get by hand, then write down the results against those obtained by using the calculator. If there is a difference, determine what the problem is.
Two
Do exercise P3.17. Use the advanced input method suggested in the book on page 113 to read in the year.