On to functions.

I’m advancing, steb-by-step (as my old english books were named). So, now, WSQ#08, it’s basically WSQ#03 revisited. I found info here , Lynda.com is really a lifesaver, and working while in class and listening to AMON AMARTH!, I love viking metal! Death, wars, interesting gods (yeah, what we have around here is boring as fuck). Oh and also, I went to the movies, twice, to watch Deadpool, and it is so fucking awesome and funny, I thnk it’s squeezing it’s way to the top of my favoite movies. Enough chit chat, let’s move on, so, the program was quite easy, it’s just #03 with a name of each operation. Here it is:

wsq08 code

So, as you can see, you name each operation you’ll use, addition, substraction, product, and division, not to forget the remainder of hte division if you need it for some reason.

Here’s the exe:

wsq08 exe

Ok now, I think numer 9 is gonna be a bit harder and I also didn’t finish quiz #3, so that’s what’s next. Later!

“I will not say: Do not weep; for not all tears are an evil” – Gandalf (yeah, I’m a LOTR fan, so what?)

Number 7!

I’ve been working on some other stuff for the past few days and didn’t pay attention to the work I’m supposed to be doing here, but now I’m back and let’s move forward. WSQ#07 is a Sum of numbers, but not x+y, it is the sum of all the numbers between x and y, it wasn’t that hard, so, I’m feeling ready for the exam.

 

Here goes the code in Atom:

wsq07 code

And the program:

wsq07 exe

And as the program says: Have a nice day!

“If you know the enemy and know yourself you need not fear the results of a hundred battles” – Sun Tzu

WSQ #06

That page cplusplus.com is really helpful. I had to search there for the use and application of the random command. You have to set the <time.h> library so the pc won’t repeat the numbers and  set the time to NULL, this took me a while to figure out cause I was setting it to 0 and the program wasn’t compiling. So, here are the pics of the code (quite long, this one):

wsq06 code

And the exe:

wsq06 exe

I think this is gonna be it for the day, I have so much more stuff to do but I gotta work on something else right now. Thanks for reading.

“Life begins at the end of your comfort zone”

Quiz #2 time!

I struggled with this for a bit, I haven’t been feeling well, I went to see a shrink, I’m coming around, baby steps. So, I was checking out Lynda.com, and some users on GitHub until I kinda figured it out, I had to fix a lot of stupid errors, and finally, here it is.

As usual, the code written in Atom:

quiz2 code

 

And the exe on Cygwin:

quiz2 exe

I feel a little behind on what I should know by now, but I’m not in the best place right now, it shouldn’t interfere with my life but dammit I’m trying, hard. Shit just hits the fan quickly and caught me off guard. I’ll start working on my pending WSQs and keep posting any progress. Thanks for reading.

“The quickest way to win a war is lose it” – George Orwell

 

On to the next one

Research and reseach, now we use conditionals, if the temperature is lower than 100°C, water doesn’t boil, at least at sea level, cause if you were, say, the Everest, with different atmospheric pressure and physics BS, water would boil at 72° Celsius. But being serious, who the hell gets to the top of the everest just to boil water? DUH! You get there, take a goddamn selfie, and get the hell down from there cause you might die if you stay too long.

Anywhore (yes, that’s a thing), let’s check out the code on Atom:

wsq05 code

 

And the terminal:

 

wsq05 exe

Yeah, it’s HOT! Kinda like Emma Watson, oh yeah, she’s damn hot!

Anyway, so that’s it for now, gotta sleep and get to class tomorrow and get to the #WSQ#06. Later!

“Not all those who wander are lost” – J.R.R. Tolkien

 

 

About the WSQ#04

This was a very, very simple assigment, although I’m currently having problems with my internet provider and have an astounding 0.3-1.6 mbps connection (of my paid 25…) it’s getting pretty hard to load any damn website, but I made it and may I say, SCHOOL SUCKS. The system sucks, the government sucks, everything around sucks, PERIOD.

Those concepts of flipped learning, the letters from the concerned students, do you need more evidence? It’s pretty obvious that the way schools have been working for decades are no longer working, we live in an increasingly difficult and shitty society where you have to at least have that little stupid paper that states “You have finished school with X and Y grades, that makes you a (insert field of study here)”. That’s bullshit. Grades aren’t everything, grades don’t make you an engineer, or a doctor, a lawyer, or anything, there’s people who quit school and are earning millions and millions of dollars because they excelled at something and they took a chance to tweak life a little, and with that amount of vision and expertise on whatever they are good for, they are now at the top of the world.

 

You have guys like Zuckerberg, Jobs (RIP), Gates, and many more, some of them don’t even have a high school diploma, but they learned, they learned with friends, from one or two teachers that really got to know them, their strenghts and weaknesses. That is exactly what we need, a more individually focused education, otherwise, you’re just wasting time on tedious lectures that bore even the teachers sometimes, we gotta do things differently.

But there, there is the main issue, how do you change the system? Well, you can’t. “If it ain’t broke, don’t fix it.” Sadly, it is

40990-Fuck-School-Im-Going-To-Marry-Someone-Rich.png

Continue reading “About the WSQ#04”

Catching up.

Well hello! We meet again. So, after a rough past week (breaking up with my girlfriend of almost 2 years and 2 mid-partials)… I’m starting to feel a lil bit better so here we are, I’m way behind on assigments but luckily there’s no deadline. I will probably write about feelings in some future post, I don’t care, I can write whatever the fuck I want, right?

So, moving onto important matters, I looked up some codes from my friends to get some idea how to write de #WSQ03 Fun with numbers, and after seeing different methods, seems I took a bit of all worlds. Here’s my work:

The code, written in Atom:

wsq03 code

The executable on Cygwin:

wsq03 exe

That’s it, I had to search St. Google for how to get the remainder, found out it’s the same as in C#, which I took last semester, using Visual Studio.

Now what? I still got a lot to do and read, and feelings-wise, as I heard somewhere I don’t really remember: “Going up shit creek without a paddle.”

This is goodbye for now. Just to leave you with another quote I like:

“Stay hungy, stay foolish” – Steve Jobs