back to the Java Homepage | This page was created through a combination of HTML, CSS, and Javascript.

Class # Date Daily Agenda
1 9/5/2008

- Introductions and Attendance
- Go over the Syllabus

Course Objectives

  • Program in Java
  • Understand CS Vocabulary and Objects
  • Improve Problem Solving Skills
  • Have Fun

  • Understanding Objects and Algorithms Role Play
    BlueJ Demo - Basic Turtle Methods

    2 9/9/2008
    • Make a PBJ Sandwich
    • Open BetterTurtle in BlueJ
    • Experiment with the different methods - Turtle Methods
    • Planning, writing, and running your first program
    3 9/11/2008

    - Open Java AN --> Discuss Exercises and page numbering

    • Application Programs and style - look at ProgramOne
    • Looking at our Book (Java Au Naturel)
    • Algorithms for your initials (planning on paper)
    • Create a turtle and have it write your initials

    Work on your Initials. COMPILE and run your program frequently!
    - Call me over when your initials are complete
    - Extra Credit 1

    4 9/15/2008
    • Finish Initials
    • Checking grades and style/doc issues
    • Short Turtle Exercise
    • Work on the extra credit (ex. 1.7 - the House) while people finish reading
    5 9/17/2008
    • Read section 1.3 (Starts on page 16.)
    • Start the vocabulary list in a MS-Word file SAVE IT as vocab.doc
    • The definitions appear IN THE reading
      • Executor, instance, inherit, superclass, subclass
    • When done with the reading and vocab words, continue drawing initials/house
    • Start the SmartTurtle class
    • Add to the SmartTurtle class the following methods:
      • drawHexagon()
      • drawEquilateralTriangle()
      • drawOctagon()
    • Test each method with an object on the object bar. Be sure to check that the Turtle maintains state (is in the same place, pointing in the same direction.)
    6 9/19/2008

    - VOCABULARY
    - New SmartTurtle Methods --> Finish what we started last class


    7 9/23/2008

    - Discuss maintaining state in our methods (is in the same place, pointing in the same direction.)
    - Look at Handout #2 (Variables/Parameters) to make our code more versatile

    changing color
    sam.switchTo(Turtle.COLORNAME); // sam.switchTo(Turtle.RED); for example

    Create SmartTurtleTest
    This is an application program to make designs with your new SmartTurtle. Be sure to use colors and all the new SmartTurtle methods. Remember that a SmartTurtle knows everything a Turtle knows.

    You should take your time and ENJOY this activity! You have creative license to make your own unique designs. :)
    When done, call me over.

    8 9/25/2008

    Start class by continuing with your SmartTurtleTest

    - Look at Handout #3 (Looping) to make our code more versatile and compact.

    If there is time...
    Write StarTurtle as described in Ex 1.12 using loops and parameters. Create two new classes, StarTurtle and StarTest (the application program.)

    Turtle Quiz next class
    - Finish your SmartTurtle class using for loops and parameters.
    - Add the use of for loops and parameters into your design program. (SmartTurtleTest)
    - Be creative! Have fun! We'll spend the whole block working on our designs. :)

    9 9/29/2008

    Closer Look at For Loops

    - Write the StarTurtle class using loops and parameters (p. 1-11 in Java AN, #1.12)
    - Write an application program "StarTurtleTest" to draw this picture.
    - Read section 1.4, 1-11 to 1-16
    - After StarTurtleTest, create another application program StarTurtleFun that creates many stars in different colors in a 'pretty way'.

    10 10/1/2008

    Take Quiz #1

    Go over Quiz #1

    Complete StarTurtle class using loops and parameters (p. 1-11 in Java AN, #1.12)
    - Finish the application program "StarTurtleTest" to draw this picture.
    - Read section 1.4, 1-11 to 1-16
    - After StarTurtleTest, create another application program StarTurtleFun that creates many stars in different colors in a 'pretty way'.

    Quiz #2 on Friday on general java syntax and for loops

    11 10/3/2008

    Go over the quizzes.

    Finish StarTurtleTest
    - Read section 1.4, 1-11 to 1-16
    - After StarTurtleTest, create another application program StarTurtleFun that creates many stars in different colors "Pretty and Patriotic"
    - Experiment with for loops
    - With remaining time, look through your code and be sure to JavaDoc ALL methods!

     

    12 10/7/2008
    • QUIZ NEXT CLASS
    • Finish StarTurtleTest
    • StarTurtleTest, create another application program StarTurtleFun that creates many stars in different colors "Pretty and Patriotic"
      - Experiment with for loops
    • JavaDoc - Create an API for BetterTurtle
    13 10/9/2008 QUIZ #2 - Vocabulary help for questions 12 and 13 (Answers are declaring/initializing) [Link will help you figure out which to use.]

    When done, finish StarTurtleFun!

     

    14 10/14/2008
    • BEGIN FLOWERTURTLE

      • Start a new project
      • In BlueJ, choose "Project - New Project"
      • Save it as "Flowers"
      • Import your Turtle and Turtlet classes into this new project.
      • Make two new classes: FlowerMaker and GardenApp
      • Copy the FlowerMaker and GardenApp codes from the listings in your server space.  Place them inside of the classes we made in the project.
      • Run the application (main method in GardenApp)
      • Discuss keeping methods short.  Look at the overall structure of the two classes.
    • Revise the FlowerMaker as described on p. 1-16, #1.20.  Make a new method to make the center red and petals.  Call it from drawFlower()
    • Show me FlowerMaker when finished
    15 10/16/2008 1) Read p. 1-19, 1-20, and 1-28 to 1-32 in JavaAN
    2) Finish drawPetals()
    3)
    If you finish --> Experiment with FractalTurtle and try to make another design. [Place each class IN A SEPARATE CLASS]
    (Try changing some of the variables/numbers and see what happens.)
    • You can also find the class inside of your Java AN listings. Place both classes in your BetterTurtle project.
    • Finish up any backwork
    16 10/21/2008

      NEXT CLASS YOU ARE TAKING THE Turtle Practical (Programming portion of your Turtle Final Exam)
      It will require you to draw a picture that I give you. You will use your SmartTurtle and StarTurtle methods.

    Go over the reading
    Look at FractalTurtle
    Discuss where we are.

    17 10/23/2008

    - Take the Programming Turtle Practical

    WHEN DONE
    - Finish up any backwork
    - Read the first section of Chapter 2 in Java AN and experiment with Vic. (It is a project in your server space.)

    • Add the following vocabulary to our list
    • Identifier, keyword, titlecase, compiler, bytecode, JVM, interpreter

    START VicWorks
    - Discuss command-line arguments and reset()
    - For each exercise, create a new application program in the VicWorks project. Name them by the exercise number. (Ex2_4 is for exercise 2.4)
    - Write Ex2_3 together
    - Complete exercises 2.4 and 2.5 on page 2-6

    18 10/27/2008

    - Read the first section of Chapter 2 in Java AN and experiment with Vic. (It is a project in your server space.)

    • Add the following vocabulary to our list
    • Identifier, keyword, titlecase, compiler, bytecode, JVM, interpreter

    START VicWorks
    - Discuss command-line arguments and reset()

    19 10/29/2008 - Add Vic.reset(args);

    - For each exercise, create a new application program in the VicWorks project. Name them by the exercise number. (Ex2_4 is for exercise 2.4)
    - Write Ex2_3 together
    - Complete exercises 2.4 and 2.5 on page 2-6

    Look at section 2.2 together and add the words method call and method header to the vocab.

    # Create a new class "SmartVic" - Write the methods

    * moveTake()
    * movePut()
    * backTake()
    * backPut()

    # Add overload to vocabulary
    # Do Ex2_11
    # Extra Credit: Ex2_12

    20 10/31/2008

      # Create a new class "SmartVic" - Write the methods

      * moveTake()
      * movePut()
      * backTake()
      * backPut()

      # Add overload to vocabulary
      # Do Ex2_11
      # Extra Credit: Ex2_12

      Add moveOn(int) to SmartVic
      Look at 2.3 --> IF statements
      Add vocabulary

    • BIG TEST coming at the end of the quarter...
    • A closer look at IF statements --> TAKE HANDOUT #5 | SmartVic code (if you don't have it)
    • Do exercises 2.13 and 2.14 together [Code for 2.13]
    • At this point you should have done 2.3-2.5, 2.11-2.14
    • Work on 2.17
    • HOMEWORK - If not done in class!
      • Read 2.4
        • Understand class methods
        • Look at the stackHasCD() boolean method
    21 11/4/2008
    • Add moveOn(int) to SmartVic
    • A closer look at IF statements --> TAKE HANDOUT #5 | SmartVic code (if you don't have it)
    • Do exercises 2.13 and 2.14 together [Code for 2.13]
    • At this point you should have done 2.3-2.5, 2.11-2.14
    • Work on 2.17
    • HOMEWORK - If not done in class!
    • Read 2.4
      • Understand class methods
      • Look at the stackHasCD() boolean method
    • There will be a test on Monday, 11/10 covering Turtle/VicWorks
    • At this point you should have done 2.3-2.5, 2.11-2.14
    • Try 2.19 - good luck!
    • If everyone finishes reading 2.4 in class, we will discuss the chapter.

      # We will look at section 2.4 together and then outline 2.23
      # -- Read 2.5
      # Complete 2.19 and 2.23 on your own after we discuss them.

      EXTRA CREDIT
      Using two SmartVics, take all the CD’s in the first row (max of 5 slots) and put in the same position in the second row and vica versa. Be sure the program is robust. You should augment the SmartVic to keep the main short. Use test data {“10010”, “11001”} for good data and {“10010”,”110” } and {“10010”} to test for robustness.
    22 11/6/2008

    Do Exercises 2.14 and 2.17
    Read 2.4 (Understand class methods/look at the stackHasCD() boolean method)
    Do 2.19
    Discuss 2.4
    Outline together 2.23

    Read 2.5 in JavaAN FIRST together.

    Finish 2.19 and 2.23
    Try the Extra Credit
    JavaDoc all methods in the SmartVic Class

    23 11/10/2008

    TURTLE/VIC EXAM - YOU WILL NEED TO USE JAVA AN (Section 2.4 in particular)
    Programming Part of the Ten Week Exam

    READ 2.4 if you have not yet!
    Read 2.5
    Outline 2.23

    Finish 2.19 and 2.23
    Try the Extra Credit
    JavaDoc all methods in the SmartVic Class
    Do Exercises 24 to 26 in chapter 2. (They should all be done in the SmartVic class.)

    24 11/13/2008

    The first 15 minutes will be towards finishing up your exam.

    READ 2.4 if you have not yet!
    Read 2.5
    Outline 2.23


    • EXTRA CREDIT
      • Using two SmartVics, take all the CD’s in the first row (max of 5 slots) and put in the same position in the second row and vica versa. Be sure the program is robust. You should augment the SmartVic to keep the main short. Use test data {“10010”, “11001”} for good data and {“10010”,”110” } and {“10010”} to test for robustness.
    25 11/17/2008

     

    Finish 2.19 and 2.23
    Try the Extra Credit

     

    26 11/19/2008

    **MAKE SURE YOU ARE KEEPING UP**

    JavaDoc all methods in the SmartVic Class
    Do Exercises 24 to 26 in chapter 2. (They should all be done in the SmartVic class.)

    • At this point you should have
      • Completed: 2.3-2.5, 2.11-2.14, 2.17, 2.19, 2.23
      • Java Doc'd all methods in the SmartVic class
      ========================================================================================
    • NEW FOR TODAY
      • Read/Discuss Section 2.6 in the text
      • Add to vocab: ! operator, precondition, return statement, boolean method
      • Discuss Ex2_28 - seesTwoFilled()
        • Types of test data
        • Do it in SmartVic with a plan in comments above it.
      • Do Ex2_24 to Ex2_29
      • ExtraCredit: Ex2_27, Ex2_29
      • READ 2.7 if finished and do 2.33 for ExtraCredit

     

    27 11/21/2008

    DO NOW: Vic Checkup

    PROGRAMMING DAY

    • All the exercises below should be done in SMARTVIC!!
      Do Ex2_24 to Ex2_29
    • ExtraCredit: Ex2_27, Ex2_29
    • READ 2.7 if finished and do 2.33 for ExtraCredit
    • Read 2.8

     

    28 11/25/2008

    Do-Now Assignment
    --> Write the boolean method atLeastOneCDInTwo() that returns true if there is a CD in the present slot or the next slot or both and false otherwise. No precondition (in other words, there is no guarantee that you are even STARTING in a legit slot!)

    Examine biconditionals with the Check-up

    Read 2.7 if not done already!
    * Then, if not done, complete Ex2_27 and Ex2_29
    * Do Ex2_32 and Ex2_33
    Read 2.8

    - Do Ex2_37 and Ex2_38
    - EXTRA CREDIT - Ex2_43

    29 12/2/2008

    * Add vocabulary to our list from the reading
    - Precondition, return statement, boolean method, Action method, query method, assign, variable, boolean variable, boolean operators (!, &&, ||), short circuit, compound conditional

    CONTINUE PROGRAMMING

    - Do Ex2_24 to Ex2_29 (All should be done in SmartVic)
    - Do Ex2_37 and Ex2_38
    - EXTRA CREDIT - Ex2_43

    Quiz next class

    30 12/4/2008
    • Take the Vic Quiz
    • Finish up all assignments

    Go over the Ten Week Written Tests

    Vic Exercises that have been assigned:
    (Please note that some of these were methods for the SmartVic and should NOT appear as classes in the main BlueJ window.)

    2.3-2.5, 2.11-2.14, 2.17, 2.19, 2.23 - 2.29, 2.32, 2.33, 2.37, 2.38, 2.43

    Vic Exercises that I want to check TODAY [be sure they have comments and correct style/indentations, etc.!]
    Ex2_27
    Ex2_28
    Ex2_29

    The following are considered Extra Credit from the set of all assigned problems
    All exercises >= 2.33  For any that you have completed, please show to me today.

    NEXT CLASS IS OUR LAST DAY OF Vic
    31 12/8/2008

    BLOCK 2: Take the Quiz!

    PROGRAMMING DAY
    Finish VicWorks!

    32 12/10/2008

    FINISH VICWORKS. You have half the block. I will be checking Ex2_27, 2_28, and 2_29 during the block.

    We then move onto our next unit:: Designing Classes

    33 12/16/2008
    • We will begin the Coin class from the ground up.
    • Create a new project named "Coin" and a new class "Coin"
    • Add the instance variables and the three constructors
    34 12/18/2008
    • Complete this activity which is on the back of Handout #6.
    • Add accessors/flip/toString
      Coin Project so far
    • make a class CoinTester to test our Coins
    • Next class we will continue work with the Coin class
    • Adding a flip method/discuss Random objects
    • Discuss ArrayList

    MIGHT BE A POP QUIZ NEXT CLASS

    35 12/22/2008 Handout #7
    - Accessors
    - Flip Method
    - Application program
    36 1/5/2009 - Discuss ArrayList based upon Handout #7 (demo in an App)
    Coin | CoinTester (Last Year's versions - similar to what we have this year.)
    Begin the Coin Assignments
    37 1/9/2009 PROGRAMMING DAY: Coin Assignments
    You should be finished with C1 and C2 by the end of today's class, working on C3.
    38 1/13/2009 PROGRAMMING DAY: Coin Assignments
    Goal of today: FINISH ALL 3 --> start Extra Credit if you have time.
    39 1/15/2009 FIRST 20 MINUTES FINISHING UP COIN | Start the Person Class
    40 1/20/2009 QUICK QUIZ on Coin | Finish Person Class - Review for Final
    41 FINAL 2BDF --> Thur, 1/22/09 - 9:40am to 11:20am
    4BDF --> Mon, 1/26/09 - 7:50am to 9:30am