OOP - interface
I have added a slide deck called OOP-interface, which explains the basic of Interfaces. Interfaces are used to implement something called multiple inheritance. While direct multiple inheritance is not supported through classes, it is supported via interfaces.
I also posted the solution to the maze display problem.
New folder and slides
I have created an "OOP" folder, and I am putting the OOP slides inside it. This should make it easier to find them when you need to look something up.
I have also uploaded a Big-O and OOP-encapsulation slide deck.
I have added the recursion slide-deck, and the associated assignments. Please review.
new OOP topics
I added two new slide presentations that deal with OOP topics:
1) Abstract classes
2) Overriding vs. Overloading classes
I am working two new presentations regarding Interfaces and Encapsulation. I hope to have them published in the next week or so.
I just added the source code for calculating Pi. The assignment gave you two different methods, which both used loops to calculate more accurate representations of Pi. We used double precision floating point integers to sum and store the value.
AP open response question - Highway
I have posted the solution to the AP open response question regarding a highway simulation. Remember that these questions are meant to be challenging, and you are not really expected to the get them 100% correct within the time allotted. You are expected to quickly recognize the essentials of the question, and write down some code (usually 10 lines or less) that would (given more time) lead to a proper working implementation. Please refer to the handout for specifics of the question.
Bingo or 2-D arrays
I have posted the source code to the program "Bingo", which uses a
2 dimensional array. We will be using them a lot in the future. Also, I noticed that many students were unfamiliar with enhanced "for" loops, which can be useful. Please review your book, pages 255-257.
Since so many students are having problems using ArrayLists, I have put together
some sample code. It is being posted below.
New slides added
I have added 3 slide decks below. Please see "OOP-inheritance", for a basic example of both inheritance and encapusulation. There is a deck called "on-line_IDE", which discusses alternate compilers than Eclipse. These should be used for home use. Finally, there is a deck called "Sorting", which discusses how to sort Arrays or ArrayLists without writing custom code. Of course, you should not be afraid of writing your own code that sorts Arrays or ArrayLists manually.
Quiz on October 30
We will have an in-class quiz on October 30. It will be 20 questions, taken from old AP exams (multiple choice section only). You have the entire class to take it. Overall, the topics will be very similar to the recent take-home quiz. I will spend some time early in the week reviewing the topics.
Quiz #2 coming up
We will be having our second quiz this Friday (September 19, 2014).
The topics covered are documented in the "quiz-2-prep" PDF file.
We will also be entering a phase where you need to complete a large number of small programming assignments. It is best if you install a Java compiler on your home computer, just in case you need more time to finish the assignments. You will need to complete a little over one assignment per class day. If you need more time, ask me, and I may grant an extension. You also may work with a partner to complete them.
Quiz on 9/3
There will be a short quiz tomorrow in class. Read slide #2 in "class-4.pdf" for the topics that may be on the quiz. Anything I have said in class, and material that is in Chapter 1 of the textbook is fair game.
I will be posting most of my class slides to this site, as PDF files. They are arranged by "class day". Sometimes I will not post, as the material needs editing, or I am using material that may be protected by a copy-write. Also, I occasionally send out a "tweet" that includes homework notice. Feel free to subscribe to that as well (@nbrandaleone). The idea is to give you multiple options. You can always contact me by e-mail if you have any questions.
Slides on how to use Strings
Big O Notation
FizzBuzz, reading input, escape sequences
Covers if-then statements and looping. Very important concepts!
Java Graphics (1) - Applet example
MagicSquare skeleton code. Please see handout for details for assignment.
A list of alternate compilers, primarily for home use.
This document discusses what topics will be on the quiz later this week.
No "Homework" exist(s)
Number of hits: 1871