Today we were taught more about Strings in class today and we also learned how to implement text files into Eclipse. I knew Java had a way to import text files and use them in a way, but it was nice to see another comparison between Java and MATLAB because I am currently using them both. I am starting to feel a bit overwhelmed with all my classes because I have three exams next week, the homework program due next Friday, and a big World Cultures assignment due next Friday. The best thing I can do is to just take everything one step at a time and try not to get ahead of myself because I will just stress myself out even more by doing that. I plan on working on the homework program this weekend and unlike two weekends ago, I will actually go to the learning center on Sunday evening to get some help because I want to understand what this program does and how exactly to go about writing it.
Thursday, March 29, 2012
Tuesday, March 27, 2012
Its CS Tuesday!
After spending about two hours doing the CodeLab problems for today's lecture last night and getting them all correct I just knew that today was gonna be a good day. During the lecture today Dr. Poplawski talked about strings and went into more detail on what methods you could invoke to modify string variables. I followed up nicely by getting the quiz answer correct so it was a good start to the day! When I walked into the lab this evening I was a little afraid of what hard assignment would be thrown at us today. I looked at the lab assignment itself and was delighted to see that there were only four questions and they were actually pretty simple. A couple of them involved using ArrayLists which I very comfortable with using because I used them in my homework program. We also got assigned our fourth programming assignment in class today which looks somewhat similar to the last one and I plan on working on it this weekend.
Sunday, March 25, 2012
Program Completed!
After hours of long and hard work I finally got my program to work. When I previously posted I only had the size and the getCommonTweets method to write which didn't seem like too much work initially. I started with the size method first because I thought it would be the easier of the two to write and I was right when I thought that because it literally only took me one line of code to correctly write the size method because I only needed to get the number of tweets for a given key. However, the getCommonTweets method posed some problems for me. It required me to think in a really weird way and I had to draw the problem out to be sure I wrote it correctly. I had to consult the Java API Documentation page several times because I knew that by using one of those methods that it would make writing the method easier. After that long and hard process I finally got the getCommonTweets method to work with all the test cases I put it against.
Thursday, March 22, 2012
Lecture...wait..my program works!?!
Thursday's lecture was pretty straight forward because it talked a lot about applying methods and arrays into classes and object. Because of the lab quiz last Tuesday I studied hard on arrays and methods so it wasn't really a huge challenge. Later on in the evening came the highlight of my night. I had finished the size method of the program on Wednesday, but I had not tested it yet because I had not created my add method to see if the size method actually worked. After about three hours of work I got five of the other methods to work, but the size method and the getCommonTweets methods do not work. Fixing the size method does not sound like it will take too much time. However, the getCommonTweets method seems like it's going to be a pain to finish. I had eclipse fix some of my errors for me and I had to consult the API Documentation a bit, but if I get six of those methods done I will be satisfied.
Tuesday, March 20, 2012
Lab Quiz...Check!
So after a nice weekend with nice weather and whatnot it was time to get back to CS 1121. Although I have started the homework program somewhat, I was mostly concerned about the lab quiz that occurred this Tuesday. What I did was go through each lab question that we completed and commented the entire code to follow the entire logic flow. Since my lab was Tuesday night I had the first lab quiz. The lab quiz itself was surprisingly easy except for the last problem. On the third problem I kept getting errors because I made an infinite loop, but I looked at the code closer and determined that I had made a very silly mistake. The last problem involved a TreeMap which is not my strong suit. However, I was able to receive 4 out of the 10 points for the question because I got the method to do one of the things and ended up with 94 points overall on the quiz!
Sunday, March 18, 2012
Yeah....about the homework program...
So it turns out that my laziness has gotten the best of me today because I did not start the program today. However, I did get lots of studying done for the lab quiz Tuesday evening. Since the quiz is worth 10% of our entire grade in the class I was more concerned with that. It's not that I didn't care to do the program, but I just needed to study because I had not done any studying prior to today and I can easily say that I got a lot done. What I did was go through each and every problem in lab 5 through 8 and commented each line of code so I fully understand the entire logic flow. Plus since I'm going over problems that relate to the content on the lab quiz, I expect that the problems will have a similar structure to the ones on the lab. I do not expect exact copies of the questions on the quiz, buy studying the problem will definitely help me prepare for the quiz.
Friday, March 16, 2012
More Class Stuff
In class on Thursday we talked more about classes. Specifically Dr. Poplawski discussed reference variable and how they are used within the context of a Java class. This material was very easy for me to understand because not only was I successfully able to complete all the CodeLab problems for this lecture, but this material was taught to us in a very slow manner so everyone would be able to understand. Our class has been working on object and classes for about two weeks now and I like the fact that we are spending this much time on objects because it gives everyone the opportunity to understand it. This weekend I plan on starting homework program #3 and utilizing the learning center. I will most likely make my way over to the learning center on Sunday night to have a coach help me if I need it, but I plan to get a good chunk of my program done this weekend.
Subscribe to:
Posts (Atom)