WSQ11 – Library Assignment

--Originally published at JAVALIO

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!

WSQ11 – Library Assignment


WSQ11 – Library Assignment

WSQ11 Library Assignment

--Originally published at GilbertoRogel

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;

} 

Final result of the class Book: Github link

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: 

  1. "Sorry, this book is not in our catalog" missing.
  2. 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!!. 

Gilberto Rogel García A01630171

WSQ11 – Library Assignment Programming Fun

--Originally published at diegotc2016

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.

Here are some photos of the code in java:

WSQ11 – Library Assignment Programming FunWSQ11 – Library Assignment Programming FunWSQ11 – Library Assignment Programming Fun

WSQ11 – Library Assignment Programming FunWSQ11 – Library Assignment Programming FunWSQ11 – Library Assignment Programming FunWSQ11 – Library Assignment Programming Fun

Here’s the code in GitHub:

https://github.com/diegoalatorre/TC2016meromero/blob/master/Library.java

https://github.com/diegoalatorre/TC2016meromero/blob/master/book.java

I got this out of:

http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-092-introduction-to-programming-in-java-january-iap-2010/assignments/MIT6_092IAP10_assn04.pdf

WSQ11 – Library Assignment Programming Fun


WSQ11 – Library Assignment Programming Fun

College Advice

--Originally published at TC201 Winter 2016 Jorge

Joel Spolsky talks mainly about 7 things, which are:

  1. Learn how to write before graduating.
  2. Learn C before graduating.
  3. Learn microeconomics before graduating.
  4. Don't blow off non-CS classes just because they're boring.
  5. Take programming-intensive courses.
  6. Stop worrying about all the jobs going to India.
  7. 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.

Here's a libk to his article: http://www.joelonsoftware.com/articles/CollegeAdvice.html

Oh, if they had this method in Alexandria, 48BC – WSQ11

--Originally published at miguelmzbi

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.

Oh, if they had this method in Alexandria, 48BC – WSQ11

And the library class, with the code on GitHub. The same rules, but now the methods aren’t defined.

Oh, if they had this method in Alexandria, 48BC – WSQ11Oh, if they had this method in Alexandria, 48BC – WSQ11Oh, if they had this method in Alexandria, 48BC – WSQ11

I guess that is all. Thanks for watching (reading), imaginary follower and Ken. You can contact me if necessary.

Oh, if they had this method in Alexandria, 48BC – WSQ11
flickr photo by rwoan https://www.flickr.com/photos/rwoan/4332365187 obtained under a Creative Commons (BY-NC)

 


Oh, if they had this method in Alexandria, 48BC – WSQ11

#WSQ11-Library

--Originally published at Blog

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.
#WSQ11-Library

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.
#WSQ11-Library

All I did in the book class was add some fields, getters and setters.
#WSQ11-Library

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.
#WSQ11-Library

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.
#WSQ11-Library

github


#WSQ11-Library

They’ve taken the books to Isengard!

--Originally published at Ce qui est chouette

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:

They’ve taken the books to Isengard!They’ve taken the books to Isengard!

And here’s the Library class and its output to console:

They’ve taken the books to Isengard!They’ve taken the books to Isengard!They’ve taken the books to Isengard!They’ve taken the books to Isengard!

DONE.

Talking LOTR,

They’ve taken the books to Isengard!
flickr “The Lord of the Ring country” by CameliaTWU under a CC License.

Beautifully closing,

-The about guy.

 


They’ve taken the books to Isengard!