In this WSQ I had the opportunity to discover a website that will help me in POO because there are some interesting problems, also they come very explained and with the answers if you want to check it
The library task was easy I just had to edit some things and it worked, I think the most important is the page is just found!
Of course I'm stupid enought to not to read instructions so i went ahead and made the GravityCalculator Assignment... Code in github
after doing this i went on and read the instructions "again" and noticed i only had to do the Library Assignment, which asked to make two classes: Book & Library. Both classes had a bunch of methods to complete their task, but they were empty and what this assignment asked for was basically to fill in the blanks of every method to fullfil their function.
In the Book class for example it had:
public class Book {
String title;
boolean borrowed; // Marks the book as not rented
public void returned() {
// Implement this method
}
}
And you just had to write the implementation inside the method. In this case it's easy because it only asks you to mark the book as not rented so the result should look like this:
// Marks the book as not rented
public void returned() {
this.borrowed=false;
The class Library was a bit more difficult, at first i didnt understand how should i implement them methods but with a lil help from Jorge Padilla's Blog and Luis Vargas's Blog i noticed that a book array made this assignment (and your life) less hard.
Result (NOT FINAL) of the class Library: Github Link
HOW THE OUTPUT SHOULD BE:
HOW MY OUTPUT IS:
As you can see i have 2 mistakes:
"Sorry, this book is not in our catalog" missing.
The Lord of the Rings book shouldnt be available in the first library.
I couldnt figure out how to solve this mistakes... any help is appreciated!!.
I think that the web pages the teacher gave us, are going to be really usefull. During the summer I’m planning to do a lot of programming in Java, because I’m still having a lot of progblems with Java. This WSQ was more or less hard for me, the great part is that some part of the code was already done and that helped me for making the program work.
Joel Spolsky talks mainly about 7 things, which are:
Learn how to write before graduating.
Learn C before graduating.
Learn microeconomics before graduating.
Don't blow off non-CS classes just because they're boring.
Take programming-intensive courses.
Stop worrying about all the jobs going to India.
No matter what you do, get a good summer internship.
I actually think what Joel says it's pretty accurate. You obviously have to know how to code, but that's not all. You also have to be good with economics, because you might start a big project, organization or whatever and you have to know how to manage the business money wise.
He also mentions that high qualifications are not the most important thing. What matters the most is your knowledge and experience. And how do you get experience before graduating? That's right, taking courses and getting internships.
So whenever you get scared thinking what you're doing with your life and how you'll get a job, just remember Joel Spolsky.
Ohhh, look at that! That is the interior of the new library of Alexandria, named Bibliotheca Alexandrina, made to commemorate and represent the previous Library of Alexandria. There are 4 theories that try to explain why and when the previous library was destroyed. My theory is that they didn’t have a good system of book borrowing (So people got angry) like the one I’m about to show.
The exercise is found here, and I completed it fully. (I want those 25 points this partial Ken). Basically we are given 2 classes, the book class and the library class, those classes have a main method that we cant modify, and some empty methods and constructors. The instruction is to fill those to output the correct answer. It isn’t that difficult, really.
The book class, and the GitHub link. Here the names of the methods were given, it was quite simple; giving the book a name, a status, some getters, etc.
And the library class, with the code on GitHub. The same rules, but now the methods aren’t defined.
I guess that is all. Thanks for watching (reading), imaginary follower and Ken. You can contact me if necessary.
And this is the most boring wsq that I have ever done!
Because all it asked of me was filling the blank methods with just some return statements in most cases.
The most interesting I did in this assignment was doing a for loop and throwing some exceptions.
So i entered the WSQ11 blog post in kenscourses and clicked the first link because I’m too lazy to read.
And the first thing I notice is that I don’t know what to do here, obviously, instead of go back and read the instructions I started doing the first assignment.
After some dedication and hard work doing that thing about gravity I realized it was too stupid, so I deleted all the files, including System32.
So now I had the tough task of reading the instructions.
According to the English dictionary of Cambridge, the word “to” is pronounced as “tu”.
The instructions said that I should try to “tutu” the Library assignment.
All I did in the book class was add some fields, getters and setters.
And in the Library class I just used the Book class to create the simulation of a library.
It also asked me to create a static method, I was so excited.
After that I kept reading and clicked on a link, and the first thing a saw was a big message saying “Buy my book!”, it was so gross that I had to leave the site.
So, here we are again. At it. Java-ing things up. Ain’t that just fun? Welp, it is. It’s so nice outside. So, watched the game? How’re the kids holding up? Are taking your meds? What meds, you ask? Precisely, that’s exactly why you shouldn’t be off ’em, grandpa. Jeez.
On with it, Mr. “I don’t need no heroin in my life” pfft, sissy.
Kenscourses doing some Python importing nowadays with these WSQ’s. The WSQ was received, *(robotVoice)assimilated*, and completed without delay. Really, like, none at all, quite punctual, if you ask me, work ethic worthy of a 100/100, I’d say. Anyways, the deal was to edit a given skeleton to make the class run the main method, for both of the required classes, Book and Library.
Here’s the Book class and its output to console:
And here’s the Library class and its output to console: