Tuesday, March 13, 2012

Back to the grind

Coming into Tuesday after a relaxing spring break I felt pretty good about the material being covered. It is not very complex because we are going over one little thing at a time and talking in detail about them. For example, in class today Dr. Poplawski discussed constructors with us and after reading the section about constructors and doing the CodeLab it seemed pretty straight forward to me. However, the real difficulty that I experienced today was during my lab section when we worked with two-dimensional arrays. My partner and I struggled mightily with this week's lab because we both forgot most of the information regarding two-dimensional arrays, but we got help from the lab TAs and finished most of the problems. There is a lab quiz next week, but I'm not gonna worry too much about it because I plan on going through all the lab problems and comment the code so that I understand it.

Sunday, March 4, 2012

Homework Program 3

As I await the third homework program assignment to open up I'm starting to go over all the rules for Maps and ArrayLists because I feel like this program is going to include those objects. By going over these it will make starting the homework program a little bit easier, but I highly doubt that I will be able to finish this program before spring break ends because I will not be able to access any sort of help from the learning center or lab TAs. There has not been any program where I have not needed any help and that is when I search for help. I really like how the learning center coaches help with the program because they don't necessarily just tell you how to write the program. The learning center coaches really do make me think and although it is a struggle to think about it, the coaches makes sure I understand the concept and understand the entire logic flow of the program.

Friday, March 2, 2012

Classes = Rice Krispies Recipe

Thursday's class was a pretty laid back lecture and Dr. Poplawski talked mostly about the distinction between classes and object. The class, as he put it, is like the rice krispies recipe while the object is like the rice krispie itself. A class is the description of what happens in the object and the object is the thing that the class is describing. Dr. Poplawski also went through a simple example of the application of the classes and object. He made the class in one java file and the object in another. It was a bit confusing at first as to why he did that, but after seeing the result and how the methods were implemented into the class, it made more sense to me. I imagine that the next homework program will have to do with maps and/or classes and methods. During spring break I will at least look at the homework program and attempt to at least start it.

Tuesday, February 28, 2012

2D Arrays

Today was the last CS filled day before spring break and it definitely was worthwhile that I showed up to class. We learned about multidimensional arrays and how to apply them to our code. Being good with for loop is essential in applying 2D arrays. In the book almost all of the examples given had at least one nested for loop and all of the examples shown in class had that same format as well. However, during the lab I was not performing at my optimum level because I was quite tired because of studying for my Physics exam. While in the lab my partner and I had several questions, but the lab TAs were able to effectively help us with our problems and we successfully got through three of the five problems. The readings for next class seem pretty lightweight, but I'll still attempt to read it and understand it before class on Thursday.

Sunday, February 26, 2012

Program #2...Success!

After meeting up yesterday, me and my partner thought hard about this assignment and how we were going to complete it. We planned to incorporate an ArrayList that contains the elements for the match array and an ArrayList that contains all the differences generated by putting the pattern array against the data array. To determine these elements for the ArrayLists we used several for loops. After about two hours of hard work and drawing out the problem, we got out program to work correctly and after using our test cases to test the program it worked perfectly every time! We knew going into this that there would be no easy way to complete the program, so we broke the program down into easier steps and that strategy ensured success in writing the program.

Friday, February 24, 2012

Let's get er' done!

I'm not known for being a person who procrastinates a lot, but for this programming assignment my partner and I have held off from starting this assignment until today. In our assignment we know that we have to use for loops and we have set up those and we also have to create variables for the lowest difference and the temporary difference. Our program is still somewhat in the embryonic stages, but we are going to meet up tomorrow morning in the lab to work with it a bit more for obvious reasons. We have pretty much gotten up to the point where we can create an ArrayList inside our method then convert it back to an array then print it out by using the main method, but we still have quite a bit more work to do before we can check off this assignment.

Wednesday, February 22, 2012

Maps?...No Problemo!

Going into class on Tuesday I knew that it was going to be an easy lecture because after reading the section on maps I completely understood it. The whole concept of maps is quite simple, but when Dr. Poplawski drew out the whole map drawing on the board with the references it was a bit confusing. However, I'm sure with some more practice the whole map drawing will make more sense to me. The stressful part about this week is definitely going to be getting the programming assignment done. My partner and I have not met much regarding the programming assignment because we have been busy this week, but we are going to meet in the next day or so and start the assignment and possibly come close to completing it.